色哟哟视频在线观看-色哟哟视频在线-色哟哟欧美15最新在线-色哟哟免费在线观看-国产l精品国产亚洲区在线观看-国产l精品国产亚洲区久久

0
  • 聊天消息
  • 系統消息
  • 評論與回復
登錄后你可以
  • 下載海量資料
  • 學習在線課程
  • 觀看技術視頻
  • 寫文章/發帖/加入社區
會員中心
創作中心

完善資料讓更多小伙伴認識你,還能領取20積分哦,立即完善>

3天內不再提示

KV260視覺入門套件smartcamera體驗

發燒電子愛好者 ? 來源:發燒電子愛好者 ? 作者:發燒電子愛好者 ? 2023-09-11 13:04 ? 次閱讀

一、基礎環境

硬件:KV260視覺入門套件

KV3.png

攝像頭:海康720P USB攝像頭(因為部署Vitis AI之后懶得poweroff插MIPI camera了,直接USB上)

DS-E11.png

軟件:Ubuntu 22.04 + Vitis AI v3.0

KV6.png
root@kria:~# uname -a
Linux kria 5.15.0-1020-xilinx-zynqmp #22-Ubuntu SMP Fri Feb 2414:14:20 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux
root@kria:~#

二、初步體驗

Vitis AI 3.0的用戶手冊如下,基本概念和指南很清晰,只需要一步一步照著做即可。

Vitis AI — Vitis? AI 3.0 documentation (xilinx.github.io)

先拿smartcam來開刀,展示下具體流程,先apt update/upgrade全部走一遍。

(一)Docker安裝&配置

Vitis AI v3.0通過Docker部署,故需要安裝&配置Docker環境。
apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

隨后驗證安裝是否成功:

DK.png

因為一直root,所以可以忽略Docker用戶權限。

之后添加國內Docker鏡像源,否則2.4G的smartcam鏡像一晚上根本下不完。

先在/etc/docker/ 目錄下增加daemon.json文件,將國內鏡像源加進去,文件內容如下:

{
    "registry-mirrors": [
        "https://ccr.ccs.tencentyun.com",
        "https://docker.mirrors.ustc.edu.cn",
        "https://hub-mirror.c.163.com",
        "https://mirror.baidubce.com",
        "https://registry.docker-cn.com"
    ]
}

之后service docker restart重啟Docker服務,再docker info檢查是否OK,差不多就是下面的樣子:

Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 8165feabfdfe38c65b599c4993d227328c231fca
 runc version: v1.1.8-0-g82f18fe
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 5.15.0-1023-xilinx-zynqmp
 Operating System: Ubuntu 22.04.3 LTS
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 3.814GiB
 Name: kria
 ID: d0241500-7aff-4090-bba3-e961db7c1818
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  https://ccr.ccs.tencentyun.com/
  https://docker.mirrors.ustc.edu.cn/
  https://hub-mirror.c.163.com/
  https://mirror.baidubce.com/
  https://registry.docker-cn.com/
 Live Restore Enabled: false

(二)配置Vitis AI

先添加Xilinx軟件包源,通過add-apt-repository ppa:xilinx-apps/ppaadd-apt-repository ppa:ubuntu-xilinx/updates兩個cmd設置額外的apt repository。

APT.png

之后,apt update更新所有package。

root@kria:~/Vitis-AI# apt update
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports jammy InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports jammy-updates InRelease
Hit:4 http://oem.archive.canonical.com/updates jammy-limerick InRelease
Hit:5 https://ppa.launchpadcontent.net/ubuntu-xilinx/sdk/ubuntu jammy InRelease
Hit:6 http://ports.ubuntu.com/ubuntu-ports jammy-backports InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports jammy-security InRelease
Hit:8 https://ppa.launchpadcontent.net/ubuntu-xilinx/updates/ubuntu jammy InRelease
Hit:9 https://ppa.launchpadcontent.net/xilinx-apps/ppa/ubuntu jammy InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@kria:~/Vitis-AI# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
  python2.7-minimal libjs-jquery-ui libopenexr25 libavcodec58 libavutil56
  libswscale5 libswresample3 libavformat58 python2.7 libpython2.7-minimal
  libpython2.7-stdlib
Learn more about Ubuntu Pro at https://ubuntu.com/pro
The following packages have been kept back:
  gjs libgjs0g libsmbclient libwbclient0 samba-libs
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

后續,繼續apt install xlnx-firmware-kv260-smartcam下載smartcam固件。

root@kria:~/Vitis-AI# apt install xlnx-firmware-kv260-smartcam
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  xlnx-firmware-kv260-smartcam
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
Need to get 2973 kB of archives.
After this operation, 7921 kB of additional disk space will be used.
Get:1 https://ppa.launchpadcontent.net/xilinx-apps/ppa/ubuntu jammy/main arm64 xlnx-firmware-kv260-smartcam arm64 0.9-0xlnx1 [2973 kB]
Fetched 2973 kB in 4s (727 kB/s)
Scanning processes...
Restarting services...ocessor microcode upgrades.
Package configuration

通過xmutil命令xmutil listapps查看:

LISTAPP.png

Active_slot為0的表示正在運行,可以xmutil unloadapp停止掉,這之前還要xmutil desktop_disable禁用桌面,奇怪的是xmutil unloadapp運行后,風扇狂轉,按理來說停止服務應該資源消耗變小了,可是fan那么激動做啥?

還有個提醒memory leak的ERROR,有知道的大佬嗎?

root@kria:~/Vitis-AI# xmutil unloadapp
[ 8191.766515] OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/zyxclmm_drm
[ 8191.781699] OF: ERROR: memory leak before free overlay changeset,  /axi/isp_vcap_csi/ports/port@0/endpoint
[ 8191.793445] OF: ERROR: memory leak, expected refcount 1 instead of -1073741824, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/isp_vcap_csi/ports/port@0/endpoint
[ 8191.811821] OF: ERROR: memory leak before free overlay changeset,  /axi/scaler@b0100000/ports/port@1/endpoint
[ 8191.821849] OF: ERROR: memory leak, expected refcount 1 instead of -1073741824, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/scaler@b0100000/ports/port@1/endpoint
[ 8191.840101] OF: ERROR: memory leak before free overlay changeset,  /axi/scaler@b0100000/ports/port@0/endpoint
[ 8191.850111] OF: ERROR: memory leak, expected refcount 1 instead of -1073741824, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/scaler@b0100000/ports/port@0/endpoint
[ 8191.868361] OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/scaler@b0100000/ports
[ 8191.884328] OF: ERROR: memory leak before free overlay changeset,  /axi/csiss@80000000/ports/port@1/endpoint
[ 8191.894253] OF: ERROR: memory leak, expected refcount 1 instead of -1073741824, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/csiss@80000000/ports/port@1/endpoint
[ 8191.912406] OF: ERROR: memory leak before free overlay changeset,  /axi/csiss@80000000/ports/port@0/endpoint
[ 8191.922328] OF: ERROR: memory leak, expected refcount 1 instead of -1073741824, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/csiss@80000000/ports/port@0/endpoint
[ 8191.940542] OF: ERROR: memory leak, expected refcount 1 instead of 2, of_node_get()/of_node_put() unbalanced - destroy cset entry: attach overlay node /axi/i2c@80030000/i2c-mux@74/i2c@0/isp@3c/sensors/sensor@0
remove from slot 0 returns: 0 (Ok)

(三)啟動Docker

先下載xilinx/smartcam的Docker IMG,通過docker pull xilinx/smartcam命令。

root@kria:~/Vitis-AI# docker pull xilinx/smartcam
Using default tag: latest
latest: Pulling from xilinx/smartcam
00f50047d606: Pull complete
d7951c234d55: Pull complete
05265a2d1f35: Pull complete
90b46a25b424: Pull complete
80e164c37cc5: Pull complete
3d8f42a1f194: Pull complete
b98fe3f03a5b: Pull complete
59a6d05de11d: Pull complete
c3201d2e9455: Pull complete
5a86aa1eda97: Pull complete
1c16e9132328: Pull complete
d5655ba163b7: Pull complete
3044adb41328: Pull complete
f5dc15e1f4ef: Pull complete
Digest: sha256:da2e52629011aeec332152a0f468d3ff156917dba9b596cf6d0de958d5dc29d7
Status: Downloaded newer image for xilinx/smartcam:latest
docker.io/xilinx/smartcam:latest

用了國內的源,速度就是快,很快就下載完成。再看看imgs:

root@kria:~/Vitis-AI# docker images
REPOSITORY        TAG       IMAGE ID       CREATED         SIZE
hello-world       latest    b038788ddb22   4 months ago    9.14kB
xilinx/smartcam   latest    aa0270aef908   11 months ago   1.41GB

通過命令啟動xilinx/smartcam鏡像,

DR.png

此時root@xlnx-docker:/# 提示進入Docker環境。

三、運行

如文章之初所說,因為部署Vitis AI之后懶得poweroff插MIPI camera了(直接帶電插MIPI camera又感覺有風險),那就直接USB camera上吧。

先確定USB camera的名字,通過拔插USB攝像頭確定是/dev/media1,為什么不是/dev/video*?一個問號。

root@xlnx-docker:/# ls /dev/media*
/dev/media0  /dev/media1

本來想smartcam --usb=1 -W 640 -H 480 --target=dp,接上HDMI顯示器后不能顯示,貌似顯示器不支持這個分辨率,為什么是640X480這個奇葩的分辨率,是因為海康USB攝像頭為720P,所以選了個攝像頭支持的分辨率。

root@xlnx-docker:/# smartcam --usb=1 -W 640 -H 480 --target=dp
Resize: mean_r=128.000000
Resize: mean_g=128.000000
Resize: mean_b=128.000000
Resize: scale_r=1.000000
Resize: scale_g=1.000000
Resize: scale_b=1.000000
[ 9484.157137] zynqmp-display fd4a0000.display: Layer width:height must be 640:480
[ 9484.187386] zynqmp-display fd4a0000.display: Layer width:height must be 640:480
[ 9484.202081] zynqmp-display fd4a0000.display: Layer width:height must be 640:480
[ 9484.224098] zynqmp-display fd4a0000.display: Layer width:height must be 640:480
[ 9484.264872] zynqmp-display fd4a0000.display: Layer width:height must be 640:480

那就RTSP吧,smartcam --usb=1 -W 640 -H 480 --target=rtsp伺候:

root@xlnx-docker:/# smartcam --usb=1 -W 640 -H 480 --target=rtsp
stream ready at:
 rtsp://172.17.0.1:554/test
rtsp://192.168.99.238:554/test

用支持RTSP的播放器再同一網段內連接,本人頭像就不照了,剛好在刷抖音,刷個人臉來看看。

CAM.png

效果不錯,最后,來一張合影,基本上各種線纜都接上了。

ALL.jpg

聲明:本文內容及配圖由入駐作者撰寫或者入駐合作網站授權轉載。文章觀點僅代表作者本人,不代表電子發燒友網立場。文章及其配圖僅供工程師學習之用,如有內容侵權或者其他違規問題,請聯系本站處理。 舉報投訴
  • usb
    usb
    +關注

    關注

    60

    文章

    8037

    瀏覽量

    267556
  • 攝像頭
    +關注

    關注

    60

    文章

    4884

    瀏覽量

    96770
  • AI
    AI
    +關注

    關注

    87

    文章

    32504

    瀏覽量

    271712
  • 視覺
    +關注

    關注

    1

    文章

    151

    瀏覽量

    24113
  • Vitis
    +關注

    關注

    0

    文章

    147

    瀏覽量

    7599
收藏 人收藏

    評論

    相關推薦

    【AMD KV260視覺入門開發套件試用】1、開箱&燒錄鏡像系統體驗

    Kria KV260 視覺 AI 入門套件官方介紹主頁: https://china.xilinx.com/products/som/kria
    發表于 07-15 22:00

    KV260視覺入門套件試用體驗】簡單開箱和Ubuntu系統上手

    感謝電子發燒友平臺組織本次試用活動,感謝安富利(AVNET)給我們提供了強大的KV260視覺入門開發套件以及配件包。 一、簡單開箱 快遞發的是順豐,10號中午從深圳出發,12號上午收到快遞
    發表于 07-28 21:56

    [KV260視覺入門套件試用體驗]+KV260 開發套件使用初體驗

    入門套件旨在為客戶提供一個平臺,以評估他們在智能城市和機器視覺、安全攝像頭、零售分析和其他工業應用中的目標應用。 據介紹,KV260 開發板建立了豐富的生態系統,在硬件和軟件方面做了
    發表于 07-31 01:26

    KV260視覺入門套件試用體驗】運行SmartCamera示例程序

    將會了解如何在KV260上安裝最新版本Docker,以及如何在KV260上運行Xilinx官方的SmartCamera示例程序。 一、安裝Docker 這里我參考的是Docker官方文檔的步驟,這樣
    發表于 08-20 23:38

    KV260視覺入門套件試用體驗】開箱和初次開機

    感謝電子發燒友給的機會,感謝安富利提供的開發板.這次申請KV260主要是最近在做ROS2相關的工作,ROS2設計比較完善,包組織方式十分便于開發,但默認的編譯和運行工具都十分卡頓,而KV260
    發表于 08-23 23:07

    KV260視覺入門套件試用體驗】開箱報告+測評計劃

    電子發燒友和安富利提供的這次機會。 這次測評的套件不僅包括KV260主板(官網價值$249),還包含兩套官方配件:Kria KV260 電源與適配器(官網價值$25),Kria KV260
    發表于 08-26 17:51

    KV260視覺入門套件試用體驗】KV260 開發套件使用體驗(二、接通攝像頭)

    KV260視覺入門套件試用體驗】KV260 開發套件使用體驗(二、接通攝像頭) 1、
    發表于 09-03 11:41

    KV260視覺入門套件試用體驗】KV260開發板初使用

    的硅器件、存儲器、引導和安全模塊。 Kria KV260 Vision AI是Xilinx公司推出的一款視覺AI入門套件,旨在為客戶提供一個平臺來評估他們的目標應用程序并最終設計他們
    發表于 09-18 14:56

    KV260視覺入門套件試用體驗】+03.SmartCamera人臉識別示例程序(zmj)

    **【KV260視覺入門套件試用體驗】+03.SmartCamera人臉識別示例程序(zmj) ** 本篇主要介紹在
    發表于 10-15 23:47

    KV260視覺入門套件試用體驗】KV260開箱及鏡像燒寫

    是所有部件的照片 簡單介紹一下kv260吧,Kria? KV260 視覺 AI 入門套件是評估基于視覺
    發表于 10-16 03:31

    KV260視覺入門套件試用體驗】四、KV260 視覺入門套件和固件更新

    KV260視覺入門套件試用體驗】四、KV260 視覺入門
    發表于 10-17 08:28

    KV260視覺入門套件試用體驗】三、開發板性能評估

    Wiki - Confluence (atlassian.net) Xilinx官方的快速入門指南: Kria KV260視覺 AI 入門套件
    發表于 10-17 08:39

    貿澤備貨Xilinx Kria KV260視覺AI入門套件,助力快速開發視覺應用

    貿澤電子 (Mouser Electronics) 即日起備貨Xilinx的Kria? KV260視覺AI入門套件
    發表于 06-28 14:45 ?2557次閱讀
    貿澤備貨Xilinx Kria <b class='flag-5'>KV260</b><b class='flag-5'>視覺</b>AI<b class='flag-5'>入門</b><b class='flag-5'>套件</b>,助力快速開發<b class='flag-5'>視覺</b>應用

    Kria KV260 AI視覺套件入門

    電子發燒友網站提供《Kria KV260 AI視覺套件入門.zip》資料免費下載
    發表于 11-15 11:29 ?3次下載
    Kria <b class='flag-5'>KV260</b> AI<b class='flag-5'>視覺</b><b class='flag-5'>套件</b><b class='flag-5'>入門</b>

    Kria KV260視覺AI入門套件用戶指南

    電子發燒友網站提供《Kria KV260視覺AI入門套件用戶指南.pdf》資料免費下載
    發表于 09-14 14:53 ?3次下載
    Kria <b class='flag-5'>KV260</b><b class='flag-5'>視覺</b>AI<b class='flag-5'>入門</b><b class='flag-5'>套件</b>用戶指南
    主站蜘蛛池模板: 国产99久久九九精品无码不卡 | 欧美人成在线观看ccc36 | 高清欧美性猛交xxxx黑人猛交 | 国产91专区 | 一本道久久综合久久88 | 不知火舞vs精子 | BL文库好大粗黑强强肉NP | 欧美成人中文字幕在线视频 | 桃花在线视频观看免费 | 男女又黄又刺激B片免费网站 | 国产精品久久久久久亚洲毛片 | 朝鲜黄色录像 | 婷婷色色狠狠爱 | 国产精品视频免费观看 | 国产精品成人影院在线观看 | 日韩特黄特色大片免费视频 | 精品日韩欧美一区二区三区 | 精品国产露脸久久AV麻豆 | 色欲AV精品人妻一区二区麻豆 | 波多野结衣 熟女 | 吃寂寞寡妇的奶 | 久久五月综合婷婷中文云霸高清 | 久久人人玩人妻潮喷内射人人 | 7723日本高清完整版在线观看 | 色橹橹欧美在线观看视频高清 | 嘟嘟嘟在线视频免费观看高清中文 | 富婆找黑人老外泻火在线播放 | 伊人久久大线蕉香港三级 | 国产99久久九九免费精品无码 | 久草网国产自偷拍 | 人妻少妇69式99偷拍 | 久久国产36精品色熟妇 | 欧美国产影院 | 国产午夜小视频 | 欧美写真视频一区 | 姑娘视频日本在线播放 | 雪恋电影完整版免费观看 | 精品亚洲一区二区三区在线播放 | 双性人皇上被c到哭 | 色鲁97精品国产亚洲AV高 | 美女脱三角裤 |