搜尋套件、儲存庫與 APP 分類

套件詳情v3.2.0

adv_camera

一個具備對焦(帶對焦矩形)和縮放功能的進階相機。

AndroidiOS
近 30 天下載
129
喜歡數
46
Pub 分數
125

安裝套件

flutter pub add adv_camera

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

adv_camera 是一個 Flutter 套件,提供先進的相機介面,支援使用對焦矩形進行對焦與縮放功能。專為 Android 和 iOS 設計,讓開發者能輕鬆將強大的相機功能整合到應用程式中。此套件提供精確的對焦點控制與順暢的縮放功能,提升攝影或影片錄製應用的使用者體驗。非常適合需要超越基本影像擷取之高階相機互動的應用。

適用情境

  • 增強現實應用
  • 照片編輯工具
  • 視訊會議應用
  • 文件掃描工具
  • 自定義相機介面

主要特色

  • 聚焦於焦點矩形
  • 縮放功能
  • 跨平台支援(Android 與 iOS)
  • 透過 pub 的簡單整合
  • 即時焦點反饋

適合對象

  • 開發自訂相機 UI 的開發者
  • 需要精確對焦控制的應用
  • 需要縮放功能的項目
  • 需要拍照/錄影的行動應用程式
  • 針對 Android 和 iOS 的 Flutter 應用

使用建議

  • 需要目標設備的相機權限
  • 可能需要額外設定以獲得最佳效能
  • 僅限基本的相機操作,超出對焦和變焦
  • 依賴於底層平台的相機 API
  • 不適合複雜的影片處理工作流程

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Advanced Camera

This is our custom Camera that enabling you to tap focus, zoom, flashlight.

Note: This plugin use android.hardware.Camera, I have tried to migrate it to android.hardware.Camera2 in development branch, but with lack of understandings I found out so many inconsistency and find it kinda waste of time since Android is developing their new camera CameraX. So until CameraX has released its stable version, I think I will still use this.

There's still so much feature that I haven't include such as video recording, auto white balance, etc.

And please note that Flutter have their own camera plugin, but they haven't include focus and flashlight feature there.

Installation

First, add adv_camera as a dependency in your pubspec.yaml file.

iOS

Add two rows to the ios/Runner/Info.plist:

  • one with the key Privacy - Camera Usage Description and a usage description.
  • and one with the key Privacy - Microphone Usage Description and a usage description.

Or in text format add the key:

<key>NSCameraUsageDescription</key>  
<string>Can I use the camera please?</string>  
<key>NSMicrophoneUsageDescription</key>  
<string>Can I use the mic please?</string>  
Android

For Android's permission, you have to configure it yourself (using Dexter, etc.), or you can manually turn on its permission at setting.

This plugin is made to support my other plugin adv_image_picker, you can see that its permission is handled there.

Example

You can find the full example, here

Future developments

  • AndroidX camera integration
  • Video integration for both Android and IOS
  • More testing and bug fixing

Support

This repository isn't maintained that well, but I will try to keep it well-maintained as much as possible. Please consider support me.. Buy me a coffee


所屬分類

依賴

依賴清單 1 項

  • plugin_platform_interface^2.0.2

原始碼儲存庫

使用此套件的專案

暫無相關資料。