Skip to content

Commit

Permalink
Merge branch 'feature/multi-cam' into release/v2.0.0
Browse files Browse the repository at this point in the history
# Conflicts:
#	README.md
#	android/src/main/kotlin/com/apparence/camerawesome/cameraX/CameraAwesomeX.kt
#	android/src/main/kotlin/com/apparence/camerawesome/cameraX/CameraXState.kt
#	android/src/main/kotlin/com/apparence/camerawesome/cameraX/Pigeon.kt
#	example/integration_test/ui_test.dart
#	example/lib/main.dart
#	ios/Classes/Pigeon/Pigeon.h
#	ios/Classes/Pigeon/Pigeon.m
#	lib/camerawesome_plugin.dart
#	lib/pigeon.dart
#	lib/src/widgets/camera_awesome_builder.dart
#	pigeons/interface.dart
  • Loading branch information
Sébastien Bel committed Apr 12, 2023
2 parents 43a2afa + 1425728 commit c694074
Show file tree
Hide file tree
Showing 65 changed files with 3,126 additions and 1,633 deletions.
6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
"program": "example/lib/subroute_camera.dart",
"flutterMode": "profile"
},
{
"name": "Multi camera example",
"request": "launch",
"type": "dart",
"program": "example/lib/multi_camera.dart"
},
{
"name": "AI analysis - face detection",
"request": "launch",
Expand Down
33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ Use our awesome built in interface or customize it as you want.

Here's all native features that cameraAwesome provides to the flutter side.

| System | Android | iOS |
| Features | Android | iOS |
| :--------------------------------------- | :-----: | :---: |
| 🔖 Ask permissions |||
| 🎥 Record video |||
| 📹 Multi camera |||
| 🔈 Enable/disable audio |||
| 🎞 Take photos |||
| 🌆 Photo live filters |||
Expand All @@ -77,7 +78,7 @@ Here's all native features that cameraAwesome provides to the flutter side.

## 📖  Installation and usage

### Add the package in your pubspec.yaml
### Add the package in your `pubspec.yaml`

```yaml
dependencies:
Expand Down Expand Up @@ -121,7 +122,6 @@ the [official documentation](https://developer.android.com/training/data-storage
If you want to record videos with audio, add this permission to your `AndroidManifest.xml`:

```xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.yourpackage">
<uses-permission android:name="android.permission.RECORD_AUDIO" />
Expand Down Expand Up @@ -203,12 +203,12 @@ CameraAwesomeBuilder.awesome(

This builder can be customized with various settings:

- a theme
- builders for each part of the screen
- initial camera setup
- preview positioning
- additional preview decoration
- and more!
- A theme.
- Builders for each part of the screen.
- Initial camera setup.
- Preview positioning.
- Additional preview decoration.
- And much more!

Here is an example:

Expand Down Expand Up @@ -288,7 +288,7 @@ Use this to achieve:
- Facial recognition.
- AI object detection.
- Realtime video chats.
And much more 🤩
- And much more 🤩

![Face AI](docs/img/face_ai.gif)

Expand Down Expand Up @@ -321,6 +321,7 @@ CameraAwesomeBuilder.awesome(
// Max frames per second, null for no limit (default)
maxFramesPerSecond: 20,
),
)
```

> MLkit recommands to use nv21 format for Android. <br>
Expand Down Expand Up @@ -350,12 +351,12 @@ Through state you can access to a `SensorConfig` class.

<br>

| Function | Comment |
| -------------------- | ---------------------------------------------------------- |
| setZoom | changing zoom |
| setFlashMode | changing flash between NONE,ON,AUTO,ALWAYS |
| setBrightness | change brightness level manually (better to let this auto) |
| setMirrorFrontCamera | set mirroring for front camera |
| Function | Comment |
| ---------------------- | ---------------------------------------------------------- |
| `setZoom` | changing zoom |
| `setFlashMode` | changing flash between NONE,ON,AUTO,ALWAYS |
| `setBrightness` | change brightness level manually (better to let this auto) |
| `setMirrorFrontCamera` | set mirroring for front camera |

All of this configurations are listenable through a stream so your UI can automatically get updated
according to the actual configuration.
Expand Down
Loading

0 comments on commit c694074

Please sign in to comment.