Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
processing_camera_image
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
thuanpm
2023-09-05 13:56:35 +0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
fec9e0aaf85d6903dfbdb4c9cc99eccf71391331
fec9e0aa
1 parent
5e164f0d
update config ndk
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
8 deletions
CHANGELOG.md
android/build.gradle
example/android/app/build.gradle
example/lib/main.dart
pubspec.yaml
CHANGELOG.md
View file @
fec9e0a
## 0.0.12
-
Fix config ndk to version 25.2.9519653.
## 0.0.11
-
Fix error with new version of package image.
...
...
android/build.gradle
View file @
fec9e0a
...
...
@@ -22,7 +22,7 @@ rootProject.allprojects {
apply
plugin:
'com.android.library'
android
{
compileSdkVersion
3
0
compileSdkVersion
3
3
compileOptions
{
sourceCompatibility
JavaVersion
.
VERSION_1_8
...
...
@@ -31,6 +31,8 @@ android {
defaultConfig
{
minSdkVersion
21
targetSdkVersion
30
ndkVersion
"25.2.9519653"
}
externalNativeBuild
{
...
...
example/android/app/build.gradle
View file @
fec9e0a
...
...
@@ -41,14 +41,17 @@ android {
}
defaultConfig
{
compileSdkVersion
33
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
applicationId
"vn.thuanpm.example"
// You can update the following values to match your application needs.
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
minSdkVersion
21
targetSdkVersion
flutter
.
targetSdkVersion
targetSdkVersion
33
versionCode
flutterVersionCode
.
toInteger
()
versionName
flutterVersionName
ndkVersion
"25.2.9519653"
}
buildTypes
{
...
...
example/lib/main.dart
View file @
fec9e0a
...
...
@@ -70,7 +70,7 @@ class _MyHomePageState extends State<MyHomePage> {
Future
<
void
>
initCamera
()
async
{
final
cameras
=
await
availableCameras
();
_cameraController
=
CameraController
(
cameras
[
0
],
ResolutionPreset
.
low
,
_cameraController
=
CameraController
(
cameras
[
0
],
ResolutionPreset
.
medium
,
imageFormatGroup:
ImageFormatGroup
.
yuv420
);
await
_cameraController
.
initialize
();
await
_cameraController
.
startImageStream
((
image
)
{
...
...
@@ -90,10 +90,10 @@ class _MyHomePageState extends State<MyHomePage> {
plane0:
savedImage
.
planes
[
0
].
bytes
,
plane1:
savedImage
.
planes
[
1
].
bytes
,
plane2:
savedImage
.
planes
[
2
].
bytes
,
rotationAngle:
15
,
//
rotationAngle: 15,
width:
savedImage
.
width
,
isFlipHoriozntal:
true
,
isFlipVectical:
true
,
// isFlipHoriozntal: true,
// isFlipVectical: true,
);
// return _processingCameraImage.processCameraImageToGrayIOS(
...
...
@@ -124,7 +124,7 @@ class _MyHomePageState extends State<MyHomePage> {
body:
Center
(
child:
currentImage
!=
null
?
Image
.
memory
(
Uint8List
.
fromList
(
imglib
.
encode
Pn
g
(
currentImage
!)))
imglib
.
encode
Jp
g
(
currentImage
!)))
:
Container
(),
),
)));
...
...
pubspec.yaml
View file @
fec9e0a
name
:
processing_camera_image
description
:
A Plutter plugin with C native for processing camera image from package camera
version
:
0.0.1
1
version
:
0.0.1
2
repository
:
https://github.com/thuanpham98/processing_camera_image
homepage
:
https://github.com/thuanpham98/processing_camera_image
...
...
Please
register
or
login
to post a comment