Wednesday, 7 August 2019

Android CameraX - video detection

I'm using the new library CameraX with Firebase ML Kit in Android and detecting faces every frame the device can.

So I set CameraX like that:

CameraX.bindToLifecycle(this, preview, imageCapture, faceDetectAnalyzer)

All working flowless, now, while I'm doing that, I want to record a video.

So basically I want to to detect faces while recording a video.

I tried:

CameraX.bindToLifecycle(this, preview, imageCapture, faceDetectAnalyzer, videoCapture)

But I'm getting an error saying that there are too many parameters so I guess that's not the right way.

I know that this library still in alpha but I guess there is a way to do that.

Even if there is not jet, what's another way to implement face detection while recording a video with Firebase ML?



from Android CameraX - video detection

No comments:

Post a Comment