I have a tflite pre=trained model that works very good in training images(grayscale images) but when i try it in real image i can't convert the CameraImage (from Camera flutter package yuv420) to grayscale (similar to training data) before passing to my model is there any way to do that?
Asked
Active
Viewed 373 times
0
-
One simple procedure is Image -> Bitmap -> Grayscale (Bitmap) if you do not care for speed. I do not know though if you need then one channel Grayscale Bitmap or three channel? What is the input shape of your model? – Farmaker Aug 14 '21 at 10:39
-
input shape of my model is 3*3*96 (three channels) How can i convert my image to bitmap in flutter? is there any package? – Abdulaziz Alnahhas Aug 18 '21 at 11:14
-
Did you ever get a solution for this? – Kyle Feb 06 '22 at 12:33
-
sadly,No till now – Abdulaziz Alnahhas Mar 19 '22 at 10:41