GithubHelp home page GithubHelp logo

cameradeepar's Introduction

Hey, Waving hand animated gif I'm Maugost Okore!

mtellect

Maugost's Twitter Maugost's Linkdein Maugost's Github Maugost's Youtube

  • šŸŒ± Iā€™m currently building apps with Flutter.
  • šŸŒ± Iā€™m currently learning more about BlockChain Development.
  • šŸŒ± Iā€™m currently learning more about AR.
  • šŸ‘Æ Start my flutter carier teaching videos on youtube Youtube.
  • šŸ’¬ Ask me about Flutter or any tech related stuff.
  • šŸ“« How to reach me: Twitter - @imaugost , Youtube - @iammaugost
  • āš” Fun fact: I spend almost all day coding.

Twitter: iammaugost Linkedin: iammaugost GitHub iammaugost

šŸ“Ÿ GitHub Stats

šŸ’³ Github Profile Summary Card

šŸ’» Tech Stack

Dart Kotlin Flutter Java Swift TypeScript Firebase Google Cloud FastAPI MongoDB MySQL Postgres SQLite Figma Gradle Postman Swagger Docker

Show some ā¤ļø by starring some of the repositories!

cameradeepar's People

Contributors

mtellect avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cameradeepar's Issues

CameraGrabber crashes a lot.

The camera crashes a lot .

**Crash Report : **

F/libc (18149): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x79 in tid 19453 (CameraHandlerTh), pid 18149


Build fingerprint: 'samsung/m01qins/m01q:10/QP1A.190711.020/M015GXXU3AUC2:user/release-keys'
Revision: '0'
ABI: 'arm'
Timestamp: 2021-05-10 19:59:19+0530
pid: 18149, tid: 19453, name: CameraHandlerTh >>> com.com.example.test.tbit <<<
uid: 10255
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x79
Cause: null pointer dereference
r0 00000000 r1 00000001 r2 00000000 r3 00000000
r4 c03b3700 r5 00000000 r6 8ee0b088 r7 8ee0b070
r8 d8f09580 r9 a58d5d80 r10 c03b3b60 r11 00000500
ip a240fd9c sp 8ee0b058 lr a214d859 pc a214d884
backtrace:
#00 pc 0005f884 /data/app/com.com.example.test.tbit-bPe4qdM0uxYy4PETGUG30A==/lib/arm/libnative-lib.so (BuildId: 3b8b4b4adb1b349ff5d7c6a7087ab199bc4101eb)

  #01  pc 00053229  /data/app/com.com.example.test.tbit-bPe4qdM0uxYy4PETGUG30A==/lib/arm/libnative-lib.so (Java_ai_deepar_ar_DeepAR_frameUpdate+92) (BuildId: 3b8b4b4adb1b349ff5d7c6a7087ab199bc4101eb)
  
  #02 pc 000dc519  /apex/com.android.runtime/lib/libart.so (art_quick_generic_jni_trampoline+40) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #03 pc 000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #04 pc 00437275  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+252) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #05 pc 000dffeb  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+178) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #06 pc 00213925  /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #07 pc 0020ff2d  /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<true, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+552) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #08 pc 00430cd1  /apex/com.android.runtime/lib/libart.so (MterpInvokeDirectRange+220) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #09 pc 000d2c14  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_direct_range+20) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #10 pc 0016daa6  [anon:dalvik-classes.dex extracted in memory from /data/app/com.com.example.test.tbit-bPe4qdM0uxYy4PETGUG30A==/base.apk] (ai.deepar.ar.DeepAR.receiveFrame+34)
  
  #11 pc 0042f439  /apex/com.android.runtime/lib/libart.so (MterpInvokeVirtualRange+964) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #12 pc 000d2b14  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_virtual_range+20) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #13 pc 0000383a  [anon:dalvik-classes11.dex extracted in memory from /data/app/com.com.example.test.tbit-bPe4qdM0uxYy4PETGUG30A==/base.apk!classes11.dex] (com.camera_deep_ar.CameraGrabber$CameraHandlerThread$2$1.onPreviewFrame+246)
  
  #14 pc 0042dc27  /apex/com.android.runtime/lib/libart.so (MterpInvokeInterface+1542) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #15 pc 000d2a14  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_interface+20) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #16 pc 0042a660  /system/framework/framework.jar (android.hardware.Camera$EventHandler.handleMessage+456)
  
  #17 pc 001eec29  /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.9053038445767080447+192) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #18 pc 001f341b  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #19 pc 00420d5d  /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+852) 
  (BuildId:9b79c57f3ed54b50283f74231a7e4048)
  
  #20 pc 000dc5a1  /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) 
  (BuildId:9b79c57f3ed54b50283f74231a7e4048)
  
  #21 pc 0201f8c7  /memfd:/jit-cache (deleted) (android.os.Handler.dispatchMessage+134)
  
  #22 pc 020124ab  /memfd:/jit-cache (deleted) (android.os.Looper.loop+1194)
  
  #23 pc 000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #24 pc 00437389  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_static_stub+248) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #25 pc 000dffff  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+198) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #26 pc 00213925  /apex/com.android.runtime/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+280) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #27 pc 0020f23d  /apex/com.android.runtime/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+716) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #28 pc 0042ea4d  /apex/com.android.runtime/lib/libart.so (MterpInvokeStatic+348) 

(BuildId:9b79c57f3ed54b50283f74231a7e4048)

  #29 pc 000d2994  /apex/com.android.runtime/lib/libart.so (mterp_op_invoke_static+20) 
 (BuildId:9b79c57f3ed54b50283f74231a7e4048)
  
  #30 pc 003599fc  /system/framework/framework.jar (android.os.HandlerThread.run+56)
  
  #31 pc 001eec29  /apex/com.android.runtime/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.9053038445767080447+192) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #32 pc 001f341b  /apex/com.android.runtime/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+126) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #33 pc 00420d5d  /apex/com.android.runtime/lib/libart.so (artQuickToInterpreterBridge+852) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #34 pc 000dc5a1  /apex/com.android.runtime/lib/libart.so (art_quick_to_interpreter_bridge+32) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #35 pc 000d7bc5  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub_internal+68) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #36 pc 00437275  /apex/com.android.runtime/lib/libart.so (art_quick_invoke_stub+252) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #37 pc 000dffeb  /apex/com.android.runtime/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+178) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #38 pc 003781bb  /apex/com.android.runtime/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+54) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #39 pc 00378f43  /apex/com.android.runtime/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+306) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #40 pc 003aa4ef  /apex/com.android.runtime/lib/libart.so (art::Thread::CreateCallback(void*)+986) (BuildId: 9b79c57f3ed54b50283f74231a7e4048)
  
  #41 pc 000a7907  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20) (BuildId: 6b958cfe24f2450b4242d6f7da7559ba)
  
  #42 pc 000611bf  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 6b958cfe24f2450b4242d6f7da7559ba)

Lost connection to device.

**Flutter doctor -v output **

Flutter (Channel stable, 2.0.6, on macOS 11.0.1 20B50 darwin-x64, locale en-GB)
ā€¢ Flutter version 2.0.6 at /Users/mj/Documents/flutter
ā€¢ Framework revision 1d9032c7e1 (11 days ago), 2021-04-29 17:37:58 -0700
ā€¢ Engine revision 05e680e202
ā€¢ Dart version 2.12.3

[āœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
ā€¢ Platform android-30, build-tools 30.0.0
ā€¢ Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
ā€¢ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
ā€¢ All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
ā€¢ Xcode at /Applications/Xcode.app/Contents/Developer
ā€¢ Xcode 12.0, Build version 12A7209
! Xcode 12.0.0 out of date (12.0.1 is recommended).
Download the latest version or update via the Mac App Store.
ā€¢ CocoaPods version 1.10.0

[āœ“] Chrome - develop for the web
ā€¢ Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[āœ“] Android Studio (version 4.1)
ā€¢ Android Studio at /Applications/Android Studio.app/Contents
ā€¢ Flutter plugin can be installed from:
šŸ”Ø https://plugins.jetbrains.com/plugin/9212-flutter
ā€¢ Dart plugin can be installed from:
šŸ”Ø https://plugins.jetbrains.com/plugin/6351-dart
ā€¢ Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[āœ“] VS Code (version 1.54.1)
ā€¢ VS Code at /Applications/Visual Studio Code.app/Contents
ā€¢ Flutter extension version 3.20.0

[āœ“] Connected device (2 available)
ā€¢ SM M015G (mobile) ā€¢ R9ZR1067HRJ ā€¢ android-arm ā€¢ Android 10 (API 29)
ā€¢ Chrome (web) ā€¢ chrome ā€¢ web-javascript ā€¢ Google Chrome 90.0.4430.93

Please help

package needs the latest version of gardle

Error while evaluating property 'hasLocalAarDeps' of task ':camera_deep_ar:bundleDebugAar'
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error

App crashes

Flutter app works fine in debug mode but in release mode app crashes

camera crash in ios

when opening the camera for the first time it works fine but then it crashes and opens a white screen,
Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit"

How to integrate DeepAR into live broadcast with RTMP?

I have downloaded CameraDeepAR (native Android) and was trying to integrate it into the Flutter RTMPPublisher as my project is already written in Dart and I would not like to rewrite it in native. I wonder if it is possible to integrate CameraDeepAR into the live broadcast with RTMP.

Can you help me?

Thanks,
An

startVideoRecording() and stopVideoRecording() doesn't save the video.

snapPhoto() is working well and saves the photo in the Pictures directory.
But video recording is not saving the video.
When I call startVideoRecording(), it logs this message.
E/HandlePluginMethod(11013): onMethodCall startVideoRecording
and when I call stopVideoRecording(), it logs this message
E/HandlePluginMethod(11013): onMethodCall stopVideoRecording

but the video doesn't saved and I can't find the video recorded.

Can you please advice what I am doing wrong?

Thanks.

Regarding Dependency configuration

i want to create AR based application for that i tried to use this code but there is one error occurs

Error:-
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.

Could not find :deepar:.
Required by:
project :app > project :camera_deep_ar

library based on permission_handler version that causes problems

hello,

first of all, I would like to thank you for this amazing library that really helps to integrate filters AR. the problem today is that with the old projects the new version (null safety ON) raise a lot of conflicts, such as the permission_handler version (8.2.) that required migration to SDK 31. from that a lot of conflicts will be raised (camera, agora engine ....). am asking you if it is possible somehow to fix that conflict (permissions handler version) to be more flexible with old projects. the version 8.1. and lower. thank you, many developers across the internet talking about this problem I wish you can provide some help.

thank you.

[iOS] snapPhoto file does not exist

Problem

Trying to read the returned path from snapPhoto on iOS throws a FileSystemException
Example output:

FileSystemException: Cannot open file, path = 'file:///var/moible/rest/of/path.png'  (OS Error: No such file or directory, errno = 2)

Steps to Reproduce

  1. Initialize DeepArCamera with cameraDeepArCallback
  2. Call controller.snapPhoto() (on iOS)
  3. Create file reference from path var file = File(imagePath)
  4. Try to read file bytes file.readAsBytes()

Possible Cause

The data.write in didTakeScreenshot is called after invoking onSnapPhotoCompleted. However, I tried calling data.write before onSnapPhotoCompleted, and it didn't do anything, but I'm not a swift developer and have limited experience with iOS, so I'm not sure if I was doing anything wrong.

the Package has problems with latest gradle-7.3.3 version , and here what i get

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':camera_deep_ar:bundleDebugAar'.

Error while evaluating property 'hasLocalAarDeps' of task ':camera_deep_ar:bundleDebugAar'
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\camera_deep_ar-0.0.2+3\android\lib\deepar0.aar

Masks.values have 20 masks but crash after 8?

Masks.values.length have 20 values but when i try to changeMask(9), app through exception.

E/flutter (10693): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: RangeError (index): Invalid value: Not in inclusive range 0..7: 19
E/flutter (10693): #0      List.[] (dart:core-patch/array.dart:268:52)
E/flutter (10693): #1      CameraDeepArController.changeMask (package:camera_deep_ar/camera_deep_ar.dart:297:50)
E/flutter (10693): #2      _MyAppState.build.<anonymous closure>.<anonymous closure> (package:echata/main.dart:277:54)
E/flutter (10693): #3      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
E/flutter (10693): #4      TapGestureRecognizer.handleTapUp (package:flutter/src/gestures/tap.dart:607:11)
E/flutter (10693): #5      BaseTapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:296:5)
E/flutter (10693): #6      BaseTapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:267:7)
E/flutter (10693): #7      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:157:27)
E/flutter (10693): #8      GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:443:20)
E/flutter (10693): #9      GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:419:22)
E/flutter (10693): #10     RendererBinding.dispatchEvent (package:flutter/src/rendering/binding.dart:287:11)
E/flutter (10693): #11     GestureBinding._handlePointerEventImmediately (package:flutter/src/gestures/binding.dart:374:7)
E/flutter (10693): #12     GestureBinding.handlePointerEvent (package:flutter/src/gestures/binding.dart:338:5)
E/flutter (10693): #13     GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:296:7)
E/flutter (10693): #14     GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:279:7)
E/flutter (10693): #15     _rootRunUnary (dart:async/zone.dart:1370:13)
E/flutter (10693): #16     _CustomZone.runUnary (dart:async/zone.dart:1265:19)
E/flutter (10693): #17     _CustomZone.runUnaryGuarded (dart:async/zone.dart:1170:7)
E/flutter (10693): #18     _invoke1 (dart:ui/hooks.dart:182:10)
E/flutter (10693): #19     PlatformDispatcher._dispatchPointerDataPacket (dart:ui/platform_dispatcher.dart:282:7)
E/flutter (10693): #20     _dispatchPointerDataPacket (dart:ui/hooks.dart:96:31)

Unable to switch CameraDirection back

We are able to switch camera direction to Front camera. However, not able to switch backward.

deepArController.switchCameraDirection(direction: CameraDirection.back);

this doesn't work.

Direct local .aar file dependencies are not supported when building an AAR

here is the output:
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error: C:\Users\dell\Documents\flutter.pub-cache\hosted\pub.dartlang.org\camera_deep_ar-0.0.2+3\android\lib\deepar0.aar

EventHandler

Hi, OnVideoRecordingComplete doesn't get invoked when stopVideoRecording is called

here is the handler inside the initState()

@OverRide
void initState() {
super.initState();
CameraDeepArController.checkPermissions();
deepArController.setEventHandler(DeepArEventHandler(
onCameraReady: (v) {
_platformVersion = "onCameraReady $v";
setState(() {});
},
onSnapPhotoCompleted: (v) {
_platformVersion = "onSnapPhotoCompleted $v";
setState(() {});
},
onVideoRecordingComplete: (v) {
_platformVersion = "onVideoRecordingComplete $v";
setState(() {});
},
onSwitchEffect: (v) {
_platformVersion = "onSwitchEffect $v";
setState(() {});
}
)
);
}

and this is the Button that starts and stops recording

ElevatedButton(
onPressed: () {
!_isVideoRecording ? deepArController.startVideoRecording()
: deepArController.stopVideoRecording();
_isVideoRecording = !_isVideoRecording;

        }, 
        child: const Text('start'),
      ),

Execution failed for task ':camera_deep_ar:bundleDebugAar'.

Execution failed for task ':camera_deep_ar:bundleDebugAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error: /Users/trevin/Development/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/camera_deep_ar-0.0.1/android/libs/deepar.aar

I've tried similar fixes by using the below snippet, but it still bugged.

allprojects {
repositories {
google()
jcenter()
maven {
// [required] camera_deep_ar
url "${project(':camera_deep_ar').projectDir}/libs"
}
}
}

AAR Build broken

:camera_deep_ar:bundleDebugAar'.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error:

I get this error when i add this plugin

Direct local .aar file dependencies are not supported when building an AAR

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the
classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the
Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file
dependencies of the :camera_deep_ar project caused this error:
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\camera_deep_ar-0.0.2+3\android\lib\deepar0.aar
[ +4 ms] * Try:
[ +1 ms] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to
get full insights.
[ +2 ms] * Get more help at https://help.gradle.org
[ +1 ms] BUILD FAILED in 14m 44s

can't find the new example on flutter.dev

hey sir, seems like the example on flutter.dev dons'nt exactly match this example, and the link mentioned in flutter.dev, takes to here, could you please give us the link to the other object in order to see the config.dart file?

thnx

[Android] Attmpt to invoke method setAREventListener on null object reference

Problem

After calling cameraDeepArController.dispose on Android this platform exception is thrown.

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'void ai.deepar.ar.DeepAR.setAREventListener(ai.deepar.ar.AREventListener)' on a null object reference, null, java.lang.NullPointerException: Attempt to invoke virtual method 'void ai.deepar.ar.DeepAR.setAREventListener(ai.deepar.ar.AREventListener)' on a null object reference

The app continues to work if you continue in the debugger, however when the DeepAR camera is loaded again the effects do not get applied, and when the controller gets disposed again, the same exception gets thrown, and not calling controller.dispose makes everything to work properly with no issues.

Steps to reproduce

  1. Create and Initialize an instance of CameraDeepArController
  2. Call controller.dispose in the dispose method of the widget
  3. Dispose of the widget

Possible Cause

After looking through the code a bit it seems that this line which sets in HandleCameraDeepAr.java could be the cause

direct local .aar file dependencies are not supported when building an aar. flutter

I am using Flutter version : 2.5.3 and Dart 2.14.4

camera_deep_ar: ^0.0.1

"Cannot run with sound null safety" is the error message I get.

Please help me with this problem.

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :camera_deep_ar project caused this error: C:\Users\kuk\Documents\sdk\flutter.pub-cache\hosted\pub.dartlang.org\camera_deep_ar-0.0.1\android\libs\deepar.aar

Poorly Documented

The documentation is not proper. The example is outdated. On the pub.dev, it shows the latest code, but not the entire code. The assets folder is missing. There are no filters, masks etc. The code in example/main.dart still is old from the previous library: rwa_deep_ar.

License check failed

  • I have set the minimumSdkVersion to 19
  • Given the permissions correctly in the AndroidManifest.xml
  • Set up the proguard-android.txt file correctly
  • And used the sample code given in the docs
  • I have generated my API key and have pasted it in the android key, I have left the iOS key as it is since I'm not testing on iOS.
    The app opens up but simply says License check failed please verify your key

app crash

The app works fine in debug mode but in release mode app crashes.

[iOS] zoomTo not implemented

Problem

Calling controller.zoomTo on iOS does nothing, after looking into it I noticed that on iOS zoomTo is not implemented, the only references to zooming is a commented out for pinch to zoom

// private func handlePinch(_ pinch: UIPinchGestureRecognizer) {
// guard sessionSetupSucceeds, let device = activeCamera else { return }
//
// switch pinch.state {
// case .began:
// initialScale = device.videoZoomFactor
// case .changed:
// let minAvailableZoomScale = device.minAvailableVideoZoomFactor
// let maxAvailableZoomScale = device.maxAvailableVideoZoomFactor
// let availableZoomScaleRange = minAvailableZoomScale...maxAvailableZoomScale
// let resolvedZoomScaleRange = zoomScaleRange.clamped(to: availableZoomScaleRange)
//
// let resolvedScale = max(resolvedZoomScaleRange.lowerBound, min(pinch.scale * initialScale, resolvedZoomScaleRange.upperBound))
//
// configCamera(device) { device in
// device.videoZoomFactor = resolvedScale
// }
// default:
// return
// }
// }

Cannot run with gradle:4.1.0

Switch from
classpath 'com.android.tools.build:gradle:3.5.0'
to
classpath 'com.android.tools.build:gradle:4.1.0'

It caused "Direct local .aar file dependencies are not supported when building an AAR" error.

Any updates?

Drawing a circle in the top right of the screen

Sorry, it's not an issue, I'm just having trouble finding an answer - besides all the fun face filters, is there a drawing API so I can draw a shape or write a text line in the top corner of the screen as part of the recording?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.