mlkit_demo icon indicating copy to clipboard operation
mlkit_demo copied to clipboard

CameraController -> startByteStream missing Uint8List

Open rai2270 opened this issue 6 years ago • 2 comments

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.

rai2270 avatar Dec 09 '18 08:12 rai2270

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.

bparrishMines avatar Dec 11 '18 00:12 bparrishMines

thanks. working :) great work

rai2270 avatar Dec 11 '18 01:12 rai2270