Comments (4)
thx,i will be fix
from opencvforandroid.
please try again:)
@CODE-FOR-INTEREST
from opencvforandroid.
E/AndroidRuntime: FATAL EXCEPTION: main
Process: kong.qingwei.kqwfacedetectiondemo, PID: 4014
java.lang.RuntimeException: Unable to start activity ComponentInfo{kong.qingwei.kqwfacedetectiondemo/kong.qingwei.kqwfacedetectiondemo.MainActivity}: android.view.InflateException: Binary XML file line #45: Binary XML file line #45: Error inflating class com.kongqw.view.CameraFaceDetectionView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2702)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2788)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1503)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6209)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: android.view.InflateException: Binary XML file line #45: Binary XML file line #45: Error inflating class com.kongqw.view.CameraFaceDetectionView
Caused by: android.view.InflateException: Binary XML file line #45: Error inflating class com.kongqw.view.CameraFaceDetectionView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at kong.qingwei.kqwfacedetectiondemo.MainActivity.onCreate(MainActivity.java:39)
at android.app.Activity.performCreate(Activity.java:6745)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1134)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2655)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2788)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1503)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6209)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
at android.view.ViewRootImpl.setView(ViewRootImpl.java:700)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:342)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
at android.app.Dialog.show(Dialog.java:316)
at org.opencv.android.BaseLoaderCallback.onPackageInstall(BaseLoaderCallback.java:110)
at org.opencv.android.AsyncServiceHelper.InstallService(AsyncServiceHelper.java:133)
at org.opencv.android.AsyncServiceHelper.initOpenCV(AsyncServiceHelper.java:49)
at org.opencv.android.OpenCVLoader.initAsync(OpenCVLoader.java:89)
E/AndroidRuntime: at com.kongqw.view.CameraFaceDetectionView.loadOpenCV(CameraFaceDetectionView.java:54)
at com.kongqw.view.CameraFaceDetectionView.(CameraFaceDetectionView.java:47)
... 27 more
from opencvforandroid.
you don‘t install OpenCV Manager! install it!
@CODE-FOR-INTEREST
from opencvforandroid.
Related Issues (20)
- 有两个问题:1.这个开源卡可以在java spring上使用吗?因为我们要做web版的人脸识别
- 2.为什么我在华为手机android6.0上camera一片漆黑的呢? HOT 9
- 打包正式版本摄像头一片漆黑,debug版本可以正常使用,系统是 Android 原生 5.1.1 HOT 2
- 目标跟踪,容易丢失 HOT 2
- 受较深的颜色影响,很容易跟丢目标,期待加入对跟踪目标的预测算法。 HOT 6
- 320版本的分支代码是不是少了/data/data/kong.qingwei.opencv320/app_cascade/2131099665.xml HOT 7
- 关于OPENCV库的问题 HOT 1
- 已经安装了OpenCV_3.2.0_Manager_3.20,还是提示未安装 HOT 1
- 华为P9人脸识别失败 HOT 1
- 其中人脸识别检测时候分别调用了OPENCV的哪些算法能说一下吗
- 大神!!人脸检测的demo可以正常运行,人脸识别的demo可以提取到人脸,但是当两个人脸比对的时候,demo却提示缺少so库 HOT 1
- 大神,我在手机上装了opencv,但是应用点开还是提示没有安装opencv HOT 4
- 目标丢失!
- 如何提取特定区域所代表的数据包?
- 打包生成app失败 而且在安卓平台上演试 也没用加载app出来
- Is it a charge?
- 大神能回复一下下么 HOT 1
- 怎么保存人脸图片啊
- 大佬,还在不在,为啥图像是个反的啊
- 可以升级opencv 版本到4.6.0嘛
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencvforandroid.