husaynhakeem / android-face-detector

A real-time face detection Android library
MIT License
473 stars 79 forks source link

If we open FRONT Camera it Stops #4

Open tejas2 opened 5 years ago

tejas2 commented 5 years ago

java.lang.IllegalStateException: it.size must not be null at husaynhakeem.io.facedetectorapp.MainActivity$setupCamera$1.process(MainActivity.kt:28) at com.otaliastudios.cameraview.CameraView$Callbacks$13.run(CameraView.java:1721) at android.os.Handler.handleCallback(Handler.java:874) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:198) at android.os.HandlerThread.run(HandlerThread.java:65)

Piyush0412 commented 3 years ago

Change Back to Front in this line val lensFacing = savedInstanceState?.getSerializable(KEY_LENS_FACING) as Facing? ?: Facing.FRONT