搜索插件、代码仓与 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

源码仓库

使用此插件的项目

暂无相关数据。