bparrishMines / mlkit_demo

[Deprecated] Example app using mlkit with a live camera view
109 stars 41 forks source link

CameraController -> startByteStream missing Uint8List #4

Open rai2270 opened 5 years ago

rai2270 commented 5 years ago

Hi, I'm trying to find a way to call CameraController -> startByteStream with Uint8List.

In your branch I can find : startByteStream(CameraImage image) , and I saw that you use it like that in the demo. But Firebase changes show FirebaseVisionImage.fromBytes( Uint8List bytes, ... ) receive Uint8List.

I assume Firebase need to stay with byte stream , so we need a way to convert CameraImage to Uint8List.

Can you share the way you make that conversion?

Thanks.

bparrishMines commented 5 years ago

Yes, I just updated this demo a little while ago. Once the PRs go through I will also update the firebase_ml_vision example with a live camera view example.

rai2270 commented 5 years ago

thanks. working :) great work