Flutter Camera는 Android, iOS 및 웹에서 장치 카메라에 액세스하고 비디오를 녹화할 수 있는 크로스플랫폼 플러그인입니다. 이미지 캡처, 실시간 카메라 미리보기 스트리밍, 고화질 비디오 녹화를 위한 간단한 API를 제공합니다. 단순성과 성능을 위해 설계되었으며, 초점 조절, 플래시 제어, 해상도 선택과 같은 일반적인 카메라 작업을 지원합니다. 사진 공유, 영상 통화 또는 증강 현실 기능과 같이 실시간 카메라 통합이 필요한 애플리케이션에 적합합니다.
사용 사례
비디오 녹화
이미지 캡처
라이브 카메라 미리보기
증강현실 앱
비디오 회의
문서 스캔
주요 기능
크로스 플랫폼 지원
라이브 카메라 스트리밍
비디오 녹화
이미지 캡처
포커스 및 플래시 제어
해상도 사용자 정의
적합한 대상
모바일 앱 개발자
실시간 카메라 애플리케이션
미디어 풍부한 앱
웹 및 모바일 하이브리드 프로젝트
AR/VR 통합
고려 사항
Android 및 iOS에서 카메라 권한이 필요합니다
일부 브라우저에서 웹 카메라 지원이 제한됨
저사양 기기에서는 성능이 다를 수 있습니다
웹 배포를 위한 추가 구성이 필요합니다
플랫폼별 특수한 에지 케이스를 처리해야 할 수 있습니다
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Flutter Camera
A Flutter plugin for iOS and Android allowing access to the device cameras and recording of videos.
Note: This plugin is still under development, and some APIs might not be available yet. We are working on a refactor which can be followed here: issue
This package fully depends on flutter camera plugin to provide access to camera.
It only supports Android and IOS for now
Features
Display live camera preview in a widget.
Snapshots can be captured and path is returned.
Device flash light support.
Record video from camera.
Add access to the image stream from Dart.
Live camera flip ( switch between rear & front camera with a click ).
The camera plugin functionality works on iOS 10.0 or higher. If compiling for any version lower than 10.0,
make sure to programmatically check the version of iOS running on the device before using any camera plugin features.
The device_info_plus plugin, for example, can be used to check the iOS version.
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
Change the minimum Android sdk version to 21 (or higher) in your android/app/build.gradle file.
minSdkVersion 21
Example
Here is a small example flutter app displaying a full screen camera preview with video recording.