Skip to content

Commit

Permalink
[#9] 사용하지 않는 변수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
zozero94 committed Dec 16, 2020
1 parent a89ce2e commit 2c6acae
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import android.content.Context
import android.content.Intent
import android.graphics.SurfaceTexture
import android.os.Bundle
import android.util.Log
import android.view.SurfaceHolder
import android.view.SurfaceView
import android.view.View
Expand Down Expand Up @@ -38,8 +39,6 @@ class MediaPipeActivity : BaseActivity<ActivityMediapipeBinding>() {
}
private val converter: ExternalTextureConverter by lazy { ExternalTextureConverter(eglManager.context) }

private var cameraHelper: CameraXPreviewHelper? = null

init {
System.loadLibrary("mediapipe_jni");
System.loadLibrary("opencv_java3");
Expand Down Expand Up @@ -112,7 +111,7 @@ class MediaPipeActivity : BaseActivity<ActivityMediapipeBinding>() {


private fun startCamera() {
cameraHelper = CameraXPreviewHelper().apply {
CameraXPreviewHelper().apply {
setOnCameraStartedListener { surfaceTexture ->
previewFrameTexture = surfaceTexture
// Make the display view visible to start showing the preview. This triggers the
Expand Down

0 comments on commit 2c6acae

Please sign in to comment.