開源GenICam項目上手-1


GenICam 說明

一個統一的編程規則,這樣我們只需要一個應用軟件,就可以支持符合標准的不同型號相機,當我們升級相機、更換相機時,不需要編寫不同的軟件代碼。

 

 

 

The goal of GenICamTM (Generic Interface for Cameras) is to provide a generic programming interface for all kinds of devices (mainly cameras), no matter what interface technology (GigE Vision, USB3 Vision, CoaXPress, Camera Link HS, Camera Link etc.) they are using or what features they are implementing. The result is that the application programming interface (API) will be identical regardless of interface technology.

 

Aravis 項目

Aravis是一個基於C/OBJECT C的視頻采集、處理開源項目

Aravis is a glib/gobject based library for video acquisition using Genicam cameras. It currently implements the gigabit ethernet and USB3 protocols used by industrial cameras. It also provides a basic ethernet camera simulator and a simple video viewer.

https://github.com/AravisProject/aravis 這個是GitHub的倉庫地址,里面會有更詳細的說明;

編譯Aravis

 Step 1: 安裝msys2

感謝清華的開源鏡像,按照下面網址的說明,下載msys2-x86_64-20220128.exe ,並對鏡像地址進行設置,如果有更新版本,也可以選擇最新版本;

https://mirrors.tuna.tsinghua.edu.cn/help/msys2/

 Step 2: 安裝依賴的庫文件

根據倉庫CI腳本的說明,安裝必要的庫

https://github.com/AravisProject/aravis/blob/main/.github/workflows/aravis-mingw.yml

 Step 3:編譯 

使用meson完成編譯、安裝,安裝后的exe默認放在 C:\msys64\mingw64\bin 目錄,可以雙擊 arv-viewer-0.8.exe 運行exe

https://aravisproject.github.io/aravis/building.html

 Step 4: 打開程序測試

默認會連接一下虛擬的相機設備用於測試

下面是運行結果與狀態監測頁面

 

 

這個項目簡直不要太優秀,我們計划從該開源項目學習其GenICam的實現方法、參考甚至復用其界面編程,值得注意Aravis的界面與Basler的pylon viewer是比較類似的,都是很友好,值得學習的界面設計。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM