https://github.com/yushulx/flutter_lite_camera
A lightweight Flutter plugin designed for capturing camera frames with a fixed resolution of 640x480 in RGB888 format.
https://github.com/yushulx/flutter_lite_camera
camera flutter linux macos windows
Last synced: 3 months ago
JSON representation
A lightweight Flutter plugin designed for capturing camera frames with a fixed resolution of 640x480 in RGB888 format.
- Host: GitHub
- URL: https://github.com/yushulx/flutter_lite_camera
- Owner: yushulx
- License: mit
- Created: 2025-01-15T06:38:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-02T09:20:24.000Z (about 1 year ago)
- Last Synced: 2025-07-02T10:22:54.234Z (about 1 year ago)
- Topics: camera, flutter, linux, macos, windows
- Language: C
- Homepage: https://pub.dev/packages/flutter_lite_camera
- Size: 271 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Flutter Lite Camera
`Flutter Lite Camera` is a lightweight Flutter plugin designed for capturing camera frames with a fixed resolution of **640x480** in **RGB888** format. The plugin supports **Windows**, **Linux**, and **macOS** platforms, making it ideal for building camera preview applications and performing image processing tasks.

## Features
- **Cross-Platform**: Compatible with **Windows**, **Linux**, and macOS.
- **RGB888 Frame Format**: Captures uncompressed **RGB888** frames for easy image processing.
- **Simple Integration**: Easy-to-use API for seamless Flutter integration.
## Requirements
- **Flutter SDK: Version** 3.0.0 or above
- **Permissions**: Ensure camera access is granted on macOS. In `DebugProfile.entitlements` or `Release.entitlements`, add:
```xml
com.apple.security.device.camera
```
## API
| Method | Description |
|-----------------|--------------------------------------------------|
| `getDeviceList()` | Returns a list of available camera devices. |
| `open(int index)` | Opens the camera at the specified index. |
| `captureFrame()` | Captures a single frame as an RGB888 image. |
| `release()` | Releases the camera resources. |