Open mubasharofficial opened 3 years ago
This error might be due to activity is not registered in Androidmanifest.xml. That is why you are not able to start the activity.
<activity android:name=".CameraActivity" />
When you create a new activity it is added in Androidmanifest.xml. But if you paste the activity file in your project, it is not added in Androidmanifest.xml. Hope this solves your problem. If this is not the case copy and paste your code here so that I can see the problem.
when i run applicaiton and run cameraActivity this error was rise E/libEGL: call to OpenGL ES API with no current context (logged once per thread) I follow your videos and create my own code but same error was rise
Error Report
E/libEGL: call to OpenGL ES API with no current context (logged once per thread) I/tflite: Initialized OpenGL-based API. E/emuglGLESv2_enc: device/MTL/opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetBufferParameteri64v:3799 GL error 0x500 D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.imagepro, PID: 3558 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.imagepro/com.example.imagepro.CameraActivity}: java.lang.IllegalArgumentException: Internal error: Failed to apply delegate: OpenCL library not loaded - dlopen failed: library "libOpenCL-pixel.so" not found Falling back to OpenGL TfLiteGpuDelegate Init: [GL_INVALID_ENUM]: An unacceptable value is specified for an enumerated argument.: glGetBufferParameteri64v in tensorflow/lite/delegates/gpu/gl/gl_buffer.cc:46 TfLiteGpuDelegate Prepare: delegate is not initialized Node number 69 (TfLiteGpuDelegateV2) failed to prepare.