CameraKit / camerakit-android

Library for Android Camera 1 and 2 APIs. Massively increase stability and reliability of photo and video capture on all Android devices.
https://camerakit.io
MIT License
5.36k stars 878 forks source link

CameraX support #549

Open brianHaoxiang opened 5 years ago

brianHaoxiang commented 5 years ago

Hi friends,

Google has released the CameraX and it seems it provides better and consistent APIs. https://developer.android.com/jetpack/androidx/releases/camerax

Is there any plan to leverage the CameraX?

crearo commented 5 years ago

From what I see, there's nothing CameraX provides that CameraKit doesn't. Think of it like a parallel CameraKit developed by the folks at Google. The only thing I don't see in CameraKit is obtaining image buffers in CPU memory for every frame, which can be done using both the camera 1 and camera 2 apis easily.

Mostafayehya commented 5 years ago

@crearo Acutally you can have access to every frame by using the Analysis use case, check this out : https://developer.android.com/training/camerax/analyze

crearo commented 5 years ago

Nice! Yeah CameraX provides it, but I don't think CameraKit (this repo) does.

Mostafayehya commented 5 years ago

I tried to, but couldn't find anything related to accessing the frames, ( maybe it exists ),but well hidden,Anyway accessing frames is easier with Camera API and CameraX .