Camerakit-android: CameraKitView.FrameCallback is never getting called

Created on 4 Mar 2019  路  2Comments  路  Source: CameraKit/camerakit-android

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Steps to Reproduce

(Write your steps here:)

  1. add the below dependencies
    implementation 'com.camerakit:camerakit:1.0.0-beta3.10'
    implementation 'com.camerakit:jpegkit:0.1.0'
    implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.11'
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.0.0'
  2. prepare CameraKitView in Activity
  3. implement CameraKitView.FrameCallback
  4. call cameraKitView.captureFrame(frameCallback); in button click

Expected Behavior

When I click on the button the camera kit api should provide each frames as byte[] in below callback

@Override
        public void onFrame(CameraKitView cameraKitView, byte[] bytes) {
            showLog("on frame");
        }

Actual Behavior

The CameraKitView.FrameCallback is never getting called.

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Most helpful comment

That's a big issue. I need it to scan QRCode or BarCode, but I can't. Because API isn't implemented.

All 2 comments

That's a big issue. I need it to scan QRCode or BarCode, but I can't. Because API isn't implemented.

It would be very handy to be able to plug in APIs like the Google vision API, or zxing.

Was this page helpful?
0 / 5 - 0 ratings