onCrosed()が呼ばれてから、このようなエラーが出ます。
実装したい機能は、動画を撮影しながら顔認識をして認識している顔の数をカウントし続けるアプリを作ることです。
現在、動画を撮影するアプリが完成したところに顔認識のコードを追加しました。
追加した顔認識のコードの元は、githubの
https:github/顔認識:camera2API/リンクです。
このサンプルをFragmentからActivityに変更して、録画機能のあるcamera2APIを使ったコードに組み込みました。
java
1//エラーのコード 2 E/RequestThread-1: Received device exception during capture call: 3 java.lang.RuntimeException: stop face detection failed 4 at android.hardware.Camera._stopFaceDetection(Native Method) 5 at android.hardware.Camera.stopFaceDetection(Camera.java:2210) 6 at android.hardware.camera2.legacy.LegacyFaceDetectMapper.processFaceDetectMode(LegacyFaceDetectMapper.java:177) 7 at android.hardware.camera2.legacy.RequestThreadManager$5.handleMessage(RequestThreadManager.java:820) 8
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。