Camera_connect/readme.md
2025-01-20 19:07:43 +08:00

50 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Basler 與 IDS 相機連線專案
本專案使用 C# 開發,實現了對 Basler 與 IDS 相機的連線控制。
---
## 功能特點
- **相機支援**:同時支持 Basler 與 IDS 相機。
- **影像捕捉**:即時捕捉並處理影像。
- **高效連線**:優化相機驅動連接速度。
---
## 環境需求
1. **開發環境**
- Visual Studio 2022
- .NET Framework 8.0
2. **相機驅動與 SDK**
- 安裝 [Basler Pylon SDK(7.2.1)](https://www.baslerweb.com/zh-tw/downloads/software/1246639908/?downloadCategory.values.label.data=pylon/)
- 安裝 [IDS peak SDK(2.14.0)](https://en.ids-imaging.com/download-peak.html)
---
# 程式流程圖
以下為程式主要流程圖:
```mermaid
flowchart TD
開始 --> 判斷相機類型{判斷相機類型}
判斷相機類型 -->|Basler| 相機連線
判斷相機類型 -->|IDS| 是否輸入IDS相機序號{是否輸入IDS相機序號}
是否輸入IDS相機序號 -->|是| 相機連線
是否輸入IDS相機序號 -->|否| 判斷相機類型
相機連線 --> 連線成功{連線成功}
連線成功 --> |是| 相機工作模式
連線成功 --> |否| 相機連線
相機工作模式 -->|按下單張擷取| 單張擷取
相機工作模式 -->|按下連續取像| 連續取像
單張擷取 --> 是否中斷連線{是否中斷連線}
連續取像 --> 停止連續取像
停止連續取像 --> 是否中斷連線{是否中斷連線}
是否中斷連線 -->|是| 相機中斷連線
是否中斷連線 -->|否| 相機工作模式
相機中斷連線 --> 結束
classDef default fill:transparent,stroke:#000,stroke-width:2px;
```