← Back to all articles
Reddit r/MachineLearningAugust 20, 2026

Resizing images from Flutter Camera Stream for TFLite modle [P]

Excerpt

Hi everyone. So I built a CNN modle using MobileNetv3 then converted it into TFLite. It performed well during training but once I integrated it into my application, it is making large errors. From flutter, the camera stream sends frames and those are processed before the model makes predictions, but it is still quite large. Is there any way I can solve this? This is my code to preprocess and resize the image (224 x 224 x RGB): import 'package:camera/camera.dart'; import 'package:image/image.dart