女人自慰AV免费观看内涵网,日韩国产剧情在线观看网址,神马电影网特片网,最新一级电影欧美,在线观看亚洲欧美日韩,黄色视频在线播放免费观看,ABO涨奶期羡澄,第一导航fulione,美女主播操b

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

ArmSoM Rockchip系列產(chǎn)品通用教程之Camera使用

Rockchip系列教程 ? 來(lái)源:Rockchip系列教程 ? 作者:Rockchip系列教程 ? 2024-04-10 14:59 ? 次閱讀

1. Camera 簡(jiǎn)介?

ArmSoM系列產(chǎn)品使用的是mipi-csi接口的攝像頭

ArmSoM-Sige7支持雙攝同顯:

2. RK3588硬件通路框圖?

rk3588支持2個(gè)isp硬件,每個(gè)isp設(shè)備可虛擬出多個(gè)虛擬節(jié)點(diǎn),軟件上通過(guò)回讀的方式,依次從ddr讀取每一路的圖像數(shù)據(jù)進(jìn)isp處理。對(duì)于多攝方案,建議將數(shù)據(jù)流平均分配到兩個(gè)isp上。

回讀:指數(shù)據(jù)經(jīng)過(guò)vicap采集到ddr,應(yīng)用獲取到數(shù)據(jù)后,將buffer地址推送給isp,isp再?gòu)膁dr獲取圖像數(shù)據(jù)。

3. RK3588 的camera通路:?

多sensor支持:

  • 單路硬件isp最多支持4路復(fù)用,isp復(fù)用情況支持分辨率如下:
  • 2路復(fù)用:最大分辨率3840x2160,dts對(duì)應(yīng)配置2路rkisp_vir設(shè)備。
  • 3路或4路復(fù)用:最大分辨率2560x1536,dts對(duì)應(yīng)配置3或4路rkisp_vir設(shè)備。
  • 硬件支持最多采集7路sensor:6mipi + 1dvp,多sensor軟件通路如下:

下圖是RK3588 camera連接鏈路示意圖,可以支持7路camera。

4. 鏈路解析:?

rockchip-camera-entity-single
  • 圖中:mipi camera2---> csi2_dphy1 ---> mipi2_csi2 ---> rkcif_mipi_lvds2--->rkcif_mipi_lvds2_sditf --->rkisp0_vir2
  • 對(duì)應(yīng)節(jié)點(diǎn):imx415 ---> csi2_dphy0 ---> mipi2_csi2 ---> rkcif_mipi_lvds2--->rkcif_mipi_lvds2_sditf --->rkisp0_vir2
  • 鏈接關(guān)系:sensor---> csi2 dphy---->mipi csi host--->vicap
  • 實(shí)線鏈路解析: Camera sensor ---> dphy ---> 通過(guò)mipi_csi2模塊解析mipi協(xié)議---> vicap ( rkcif節(jié)點(diǎn)代表vicap )
  • 虛線鏈路解析:vicap ---> rkcif_mipi_lvds2_sditf ---> isp

提示

每個(gè)vicap節(jié)點(diǎn)與isp的鏈接關(guān)系,通過(guò)對(duì)應(yīng)虛擬出的XXX_sditf來(lái)指明鏈接關(guān)系。

5. ArmSoM-Sige7雙路Camera調(diào)試?

這里以imx415攝像頭為例,解析ArmSoM-Sige7雙路Camera調(diào)試

5.1 原理圖?

Camera1:CSI0_MIPI:

Camera2: CS1_MIPI:

5.2 雙路Camera的dts配置:?

  • 鏈路配置1: imx415 —> csi2_dphy0 —> mipi2_csi2 —> rkcif_mipi_lvds2—>rkcif_mipi_lvds2_sditf —>rkisp0_vir2
  • 鏈路配置2: imx415 —> csi2_dphy3 —> mipi4_csi2 —> rkcif_mipi_lvds4—>rkcif_mipi_lvds4_sditf —>rkisp1_vir1
&i2c3 {    status = "okay";    imx415: imx415@1a {        status = "okay";        compatible = "sony,imx415";        reg = ;        clocks = ;        clock-names = "xvclk";        pinctrl-names = "default";        pinctrl-0 = ;        power-domains = ;        pwdn-gpios = ;        reset-gpios = ;        rockchip,camera-module-index = ;        rockchip,camera-module-facing = "back";        rockchip,camera-module-name = "CMK-OT2022-PX1";        rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20";        port {            imx415_out0: endpoint {                remote-endpoint = ;                data-lanes = ;            };        };    };};&i2c4 {    status = "okay";    pinctrl-names = "default";    pinctrl-0 = ;    imx415_1: imx415_1@1a {        status = "okay";        compatible = "sony,imx415";        reg = ;        clocks = ;        clock-names = "xvclk";        pinctrl-names = "default";        pinctrl-0 = ;        power-domains = ;        pwdn-gpios = ;        reset-gpios = ;        rockchip,camera-module-index = ;        rockchip,camera-module-facing = "back";        rockchip,camera-module-name = "CMK-OT2022-PX1";        rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20";        port {            imx415_out3: endpoint {                remote-endpoint = ;                data-lanes = ;            };        };    };};&csi2_dphy0_hw {    status = "okay";};&csi2_dphy1_hw {    status = "okay";};&csi2_dphy0 {    status = "okay";    ports {        #address-cells = ;        #size-cells = ;        port@0 {            reg = ;            #address-cells = ;            #size-cells = ;            mipidphy0_in_ucam0: endpoint@1 {                reg = ;                remote-endpoint = ;                data-lanes = ;            };        };        port@1 {            reg = ;            #address-cells = ;            #size-cells = ;            csidphy0_out: endpoint@0 {                reg = ;                remote-endpoint = ;            };        };    };};&csi2_dphy3 {    status = "okay";    ports {        #address-cells = ;        #size-cells = ;        port@0 {            reg = ;            #address-cells = ;            #size-cells = ;            mipidphy3_in_ucam3: endpoint@1 {                reg = ;                remote-endpoint = ;                data-lanes = ;            };        };        port@1 {            reg = ;            #address-cells = ;            #size-cells = ;            csidphy3_out: endpoint@0 {                reg = ;                remote-endpoint = ;            };        };    };};&mipi2_csi2 {    status = "okay";    ports {        #address-cells = ;        #size-cells = ;        port@0 {            reg = ;            #address-cells = ;            #size-cells = ;            mipi2_csi2_input: endpoint@1 {                reg = ;                remote-endpoint = ;            };        };        port@1 {            reg = ;            #address-cells = ;            #size-cells = ;            mipi2_csi2_output: endpoint@0 {                reg = ;                remote-endpoint = ;            };        };    };};&mipi4_csi2 {    status = "okay";    ports {        #address-cells = ;        #size-cells = ;        port@0 {            reg = ;            #address-cells = ;            #size-cells = ;            mipi4_csi2_input: endpoint@1 {                reg = ;                remote-endpoint = ;            };        };        port@1 {            reg = ;            #address-cells = ;            #size-cells = ;            mipi4_csi2_output: endpoint@0 {                reg = ;                remote-endpoint = ;            };        };    };};&rkcif {    status = "okay";};&rkcif_mipi_lvds2 {    status = "okay";    port {        cif_mipi2_in0: endpoint {            remote-endpoint = ;        };    };};&rkcif_mipi_lvds2_sditf {    status = "okay";    port {        mipi_lvds2_sditf: endpoint {            remote-endpoint = ;        };    };};&rkcif_mipi_lvds4 {    status = "okay";    port {        cif_mipi_in4: endpoint {            remote-endpoint = ;        };    };};&rkcif_mipi_lvds4_sditf {    status = "okay";    port {        mipi4_lvds_sditf: endpoint {            remote-endpoint = ;        };    };};&rkcif_mmu {    status = "okay";};&rkisp0 {    status = "okay";};&isp0_mmu {    status = "okay";};&rkisp0_vir2 {    status = "okay";    port {        #address-cells = ;        #size-cells = ;        isp0_vir2: endpoint@0 {            reg = ;            remote-endpoint = ;        };    };};&rkisp1 {    status = "okay";};&isp1_mmu {    status = "okay";};&rkisp1_vir1 {    status = "okay";    port {        #address-cells = ;        #size-cells = ;        isp1_vir1: endpoint@0 {            reg = ;            remote-endpoint = ;        };    };};&pinctrl {    camera {        cam_pwdn_gpio: cam-pwdn-gpio {            rockchip,pins = ;        };    };};

6. 調(diào)試技巧?

6.1 查看Camera是否掛載到i2c總線下?

i2cdetect -y 3

6.2 查看拓?fù)浣Y(jié)構(gòu)?

 media-ctl -d /dev/media0 -p

6.3 imx415 相關(guān)的log信息?

dmesg | grep imx415

6.4 查看sys文件系統(tǒng)中文件信息?

內(nèi)核會(huì)為攝像頭在目錄/sys/class/video4linux下分配設(shè)備信息描述文件

armsom@armsom:~$  grep imx415 /sys/class/video4linux/v*/name/sys/class/video4linux/v4l-subdev2/name:m00_b_imx415 3-001a/sys/class/video4linux/v4l-subdev7/name:m01_b_imx415 4-001a

查找Camera對(duì)應(yīng)的vedio節(jié)點(diǎn):

armsom@armsom:~$ grep "" /sys/class/video4linux/v*/name | grep mainpath/sys/class/video4linux/video22/name:rkisp_mainpath/sys/class/video4linux/video31/name:rkisp_mainpath

可以看到,在ArmSoM-Sige7中,雙Camera的節(jié)點(diǎn)對(duì)應(yīng)的是:video22和video31

6.5 查找所有攝像頭設(shè)備?

armsom@armsom:~$ v4l2-ctl --list-devicesrkisp-statistics (platform: rkisp):        /dev/video29        /dev/video30        /dev/video38        /dev/video39rkcif-mipi-lvds2 (platform:rkcif):        /dev/media0        /dev/media1rkcif (platform:rkcif-mipi-lvds2):        /dev/video0        /dev/video1        /dev/video2        /dev/video3        /dev/video4        /dev/video5        /dev/video6        /dev/video7        /dev/video8        /dev/video9        /dev/video10rkcif (platform:rkcif-mipi-lvds4):        /dev/video11        /dev/video12        /dev/video13        /dev/video14        /dev/video15        /dev/video16        /dev/video17        /dev/video18        /dev/video19        /dev/video20        /dev/video21rkisp_mainpath (platform:rkisp0-vir0):        /dev/video22        /dev/video23        /dev/video24        /dev/video25        /dev/video26        /dev/video27        /dev/video28        /dev/media2rkisp_mainpath (platform:rkisp1-vir1):        /dev/video31        /dev/video32        /dev/video33        /dev/video34        /dev/video35        /dev/video36        /dev/video37        /dev/media3

其中/dev/video22和/dev/video31都是攝像頭的設(shè)備。

6.6 查看設(shè)備的預(yù)覽支持格式?

如下是video22節(jié)點(diǎn): imx415 攝像頭的查詢結(jié)果:

armsom@armsom:~$ v4l2-ctl -d /dev/video22 --list-formats-extioctl: VIDIOC_ENUM_FMT        Type: Video Capture Multiplanar        [0]: 'UYVY' (UYVY 4:2:2)                Size: Stepwise 32x32 - 3840x2160 with step 8/8        [1]: 'NV16' (Y/CbCr 4:2:2)                Size: Stepwise 32x32 - 3840x2160 with step 8/8        [2]: 'NV61' (Y/CrCb 4:2:2)                Size: Stepwise 32x32 - 3840x2160 with step 8/8        [3]: 'NV21' (Y/CrCb 4:2:0)                Size: Stepwise 32x32 - 3840x2160 with step 8/8        [4]: 'NV12' (Y/CbCr 4:2:0)                Size: Stepwise 32x32 - 3840x2160 with step 8/8        [5]: 'NM21' (Y/CrCb 4:2:0 (N-C))                Size: Stepwise 32x32 - 3840x2160 with step 8/8        [6]: 'NM12' (Y/CbCr 4:2:0 (N-C))                Size: Stepwise 32x32 - 3840x2160 with step 8/8

6.7 查看設(shè)備的所有信息:?

armsom@armsom:~$ v4l2-ctl --all --device /dev/video22Driver Info:        Driver name      : rkisp_v6        Card type        : rkisp_mainpath        Bus info         : platform:rkisp0-vir0        Driver version   : 2.3.0        Capabilities     : 0x84201000                Video Capture Multiplanar                Streaming                Extended Pix Format                Device Capabilities        Device Caps      : 0x04201000                Video Capture Multiplanar                Streaming                Extended Pix FormatMedia Driver Info:        Driver name      : rkisp0-vir0        Model            : rkisp0        Serial           :        Bus info         :        Media version    : 5.10.160        Hardware revision: 0x00000000 (0)        Driver version   : 5.10.160Interface Info:        ID               : 0x03000007        Type             : V4L VideoEntity Info:        ID               : 0x00000006 (6)        Name             : rkisp_mainpath        Function         : V4L2 I/O        Pad 0x01000009   : 0: Sink          Link 0x0200000a: from remote pad 0x1000004 of entity 'rkisp-isp-subdev' (Unknown V4L2 Sub-Device): Data, EnabledPriority: 2Format Video Capture Multiplanar:        Width/Height      : 3840/2160        Pixel Format      : 'NM12' (Y/CbCr 4:2:0 (N-C))        Field             : None        Number of planes  : 2        Flags             :        Colorspace        : sRGB        Transfer Function : Rec. 709        YCbCr/HSV Encoding: Rec. 709        Quantization      : Full Range        Plane 0           :           Bytes per Line : 3840           Size Image     : 8294400        Plane 1           :           Bytes per Line : 3840           Size Image     : 4147200Selection Video Capture: crop, Left 0, Top 0, Width 3840, Height 2160, Flags:Selection Video Capture: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags:Selection Video Output: crop, Left 0, Top 0, Width 3840, Height 2160, Flags:Selection Video Output: crop_bounds, Left 0, Top 0, Width 3840, Height 2160, Flags:Image Processing Controls                     pixel_rate 0x009f0902 (int64)  : min=0 max=1000000000 step=1 default=1000000000 value=356800000 flags=read-only, volatile

6.8 攝像頭預(yù)覽?

ArmSoM-Sige7中,雙Camera的預(yù)覽命令:

  • 預(yù)覽攝像頭1:
gst-launch-1.0 v4l2src device=/dev/video22 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! autovideosink

  • 預(yù)覽攝像頭2:
gst-launch-1.0 v4l2src device=/dev/video31 ! video/x-raw,format=NV12,width=3840,height=2160,framerate=30/1 ! videoconvert ! autovideosink

7. Camera應(yīng)用程序開發(fā)?

客戶可以根據(jù)自己的需求進(jìn)行Camera相關(guān)的應(yīng)用程序開發(fā),如下是使用QT開發(fā)的雙攝同顯應(yīng)用程序。

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問(wèn)題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • Qt
    Qt
    +關(guān)注

    關(guān)注

    1

    文章

    313

    瀏覽量

    38756
  • Camera
    +關(guān)注

    關(guān)注

    0

    文章

    79

    瀏覽量

    21337
  • Rockchip
    +關(guān)注

    關(guān)注

    0

    文章

    78

    瀏覽量

    19006
  • RK3588
    +關(guān)注

    關(guān)注

    7

    文章

    402

    瀏覽量

    5519
收藏 人收藏

    評(píng)論

    相關(guān)推薦
    熱點(diǎn)推薦

    54600系列產(chǎn)品說(shuō)明

    54600系列產(chǎn)品說(shuō)明
    發(fā)表于 01-21 08:44

    客戶為什么會(huì)選擇3700系列產(chǎn)品

    客戶為什么會(huì)選擇3700系列產(chǎn)品?3700系列產(chǎn)品有什么優(yōu)點(diǎn)?
    發(fā)表于 05-07 06:33

    RX系列產(chǎn)品分別分為哪幾種?RX系列產(chǎn)品具備哪些功能?

    RX系列產(chǎn)品分別分為哪幾種?RX系列微控制器有哪些性能?RX系列產(chǎn)品具備哪些功能?
    發(fā)表于 07-01 10:57

    產(chǎn)品介紹】武漢芯源Cortex-M0+通用 MCU CW32F系列產(chǎn)品介紹

    Cortex-M0+ 通用 MCU CW32F系列家族型號(hào)展示2021年10月14日,經(jīng)過(guò)多年的市場(chǎng)調(diào)研和潛心研發(fā),武漢芯源半導(dǎo)體自主研發(fā)的首款基于 Cortex-M0+ 內(nèi)核微控制器產(chǎn)品
    發(fā)表于 08-09 10:17

    RK3588平臺(tái)產(chǎn)測(cè)之ArmSoM-W3 DDR壓力測(cè)試

    root@linaro-alip:/rockchip-test# ./rockchip_test.sh DDR壓力測(cè)試開始: ArmSoM 產(chǎn)品介紹: http
    發(fā)表于 10-09 19:29

    armsom:為何選擇rk3588開發(fā)與Jetson Nano引腳兼容的嵌入式產(chǎn)品

    引言: 當(dāng)armsom決定采用RK3588芯片開發(fā)一款與Jetson Nano引腳兼容的產(chǎn)品時(shí),這意味著一次重要的技術(shù)決策,為開發(fā)者和制造商提供了更大的靈活性。這篇文章將解釋我們選擇RK3588
    發(fā)表于 10-18 17:35

    安國(guó)全系列產(chǎn)品獲得Windows 7 DTM認(rèn)證

    安國(guó)全系列產(chǎn)品獲得Windows 7 DTM認(rèn)證 安國(guó),隨著微軟的Windows 7操作系統(tǒng)上市在即,安國(guó)卡片閱讀機(jī)、隨身碟、芯片卡片閱讀機(jī)、Web Camera等控制芯片全系列產(chǎn)品已通過(guò)DTM
    發(fā)表于 08-05 10:00 ?768次閱讀

    ArmSom--攝像頭開發(fā)指南(一)

    一.簡(jiǎn)介RK3588從入門到精通開發(fā)板:ArmSoM-W3Kernel:5.10.160OS:Debian11本?主要介紹在Rockchip平臺(tái)下Camera相關(guān)代碼配置,MIPI-CSI調(diào)試的通路
    的頭像 發(fā)表于 11-03 14:56 ?1784次閱讀
    <b class='flag-5'>ArmSom</b>--攝像頭開發(fā)指南(一)

    ArmSom--攝像頭開發(fā)指南(二)

    Rockchip平臺(tái)下Camera相關(guān)測(cè)試命令二.攝像頭連接ArmSoM-W3開發(fā)板與imx415連接圖如下:w3-camera-hardware注意排線的金屬引腳朝向板
    的頭像 發(fā)表于 11-06 10:30 ?2257次閱讀
    <b class='flag-5'>ArmSom</b>--攝像頭開發(fā)指南(二)

    ArmSoM-W3應(yīng)用開發(fā)之安裝docker

    1.簡(jiǎn)介RK3588從入門到精通系列專題開發(fā)板:ArmSoM-W3Kernel:5.10.160OS:Debian11本?介紹ArmSoM-W3在Debian11下如何安裝
    的頭像 發(fā)表于 11-20 10:05 ?651次閱讀
    <b class='flag-5'>ArmSoM</b>-W3應(yīng)用開發(fā)之安裝docker

    ArmSoM Rockchip系列產(chǎn)品 通用教程 之 CAN 使用

    都采用CAN總線來(lái)實(shí)現(xiàn)汽車內(nèi)部控制系統(tǒng)之間的數(shù)據(jù)通信。 RK3568/RK3588的CAN驅(qū)動(dòng)文件:drivers/net/can/rockchip/rockchip_canfd.c 在
    的頭像 發(fā)表于 02-29 16:52 ?1136次閱讀
    <b class='flag-5'>ArmSoM</b> <b class='flag-5'>Rockchip</b><b class='flag-5'>系列產(chǎn)品</b> <b class='flag-5'>通用</b>教程 之 CAN 使用

    ArmSoM Rockchip系列產(chǎn)品 通用教程 之 Display 使用

    品上需要?持 8K 顯?輸出,VP1 上要注意不要連接其他顯?接口。 1.2 RK3588支持的顯示接口? 2個(gè)DP 2個(gè)HDMI/eDP 共用接口 2個(gè)MIPI DSI BT656/BT1120 2. ArmSoM-W3顯示接口? ArmSoM-W3有著豐富的顯示接口
    的頭像 發(fā)表于 03-06 15:50 ?2155次閱讀
    <b class='flag-5'>ArmSoM</b> <b class='flag-5'>Rockchip</b><b class='flag-5'>系列產(chǎn)品</b> <b class='flag-5'>通用</b>教程 之 Display 使用

    ArmSoM Rockchip系列產(chǎn)品 通用教程 之 RTC 使用

    1. RTC 簡(jiǎn)介? RTC:(Real_Time Clock):實(shí)時(shí)時(shí)鐘 HYM8563是一種低功耗實(shí)時(shí)時(shí)鐘(RTC)芯片,用于提供精確的時(shí)間和日期信息。它提供一個(gè)可編程的時(shí)鐘輸出,一個(gè)中斷輸出和一個(gè)掉電檢測(cè)器,所有的地址和數(shù)據(jù)都通過(guò)I2C總線接口串行傳遞。最大總線速度為 400Kbits/s,每次讀寫數(shù)據(jù)后,內(nèi)嵌的字地址寄存器會(huì)自動(dòng)遞增 以下是HYM8563芯片的主要特點(diǎn)和功能: 時(shí)鐘和日歷功能:HYM8563具有時(shí)鐘和日歷功能,可提供準(zhǔn)確的時(shí)間和日期信息。它支持年、月、日、星期、小時(shí)、
    的頭像 發(fā)表于 03-05 16:57 ?898次閱讀
    <b class='flag-5'>ArmSoM</b> <b class='flag-5'>Rockchip</b><b class='flag-5'>系列產(chǎn)品</b> <b class='flag-5'>通用</b>教程 之 RTC 使用

    ArmSoM Rockchip系列產(chǎn)品 通用教程 之 UART 使用

    1. UART 簡(jiǎn)介 ? Rockchip UART (Universal Asynchronous Receiver/Transmitter) 基于16550A串口標(biāo)準(zhǔn),完整模塊支持以下功能
    的頭像 發(fā)表于 03-08 14:39 ?1249次閱讀

    ArmSoM RK3588/RK3576核心板,Rockchip攝像頭使用

    1. Camera 簡(jiǎn)介? ArmSoM系列產(chǎn)品使用的是mipi-csi接口的攝像頭 ArmSoM-Sige7支持雙攝同顯: rk3588開發(fā)板 2. RK3588硬件通路框圖? rk
    的頭像 發(fā)表于 01-08 14:49 ?664次閱讀
    <b class='flag-5'>ArmSoM</b> RK3588/RK3576核心板,<b class='flag-5'>Rockchip</b>攝像頭使用