Python as a backend in flutter

588 views
Skip to first unread message

Abanoub Lotfy

unread,
Oct 24, 2020, 8:47:16 AM10/24/20
to Flutter Development (flutter-dev)
I want to make a app that I will upload an image and the app get the similar images .
this topic is image retrieval in python so if I can link the python code to the flutter or any ML topic to help me in this situation?
thanks.

Suzuki Tomohiro

unread,
Oct 24, 2020, 9:33:08 AM10/24/20
to Flutter Development (flutter-dev)
(Assuming your Flutter app is on iOS or Android)
Flutter cannot run Python. Flutter apps can make HTTP requests (e,g, uploading an image) to your Python backend, which would suggest similar images using your machine learning models (Tensorflow, PyTorch, etc.).

If you’re looking for machine learning models for this, you cannot expect much from flutter-dev mailing list.

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/211d3fa9-5937-443e-853b-6218a6a055e7n%40googlegroups.com.

Abanoub Lotfy

unread,
Oct 24, 2020, 4:15:44 PM10/24/20
to Flutter Development (flutter-dev)
Thank you, can Flutter apps can make HTTP requests (uploading an image) to your Python backend and make a machine learning algorithm then send a result to front end again ?
also can you help me to see any resources ?  

ABADA SAMUEL

unread,
Oct 24, 2020, 4:30:20 PM10/24/20
to Abanoub Lotfy, Flutter Development (flutter-dev)
Thank you, can Flutter apps can make HTTP requests (uploading an image) to your Python backend and make a machine learning algorithm then send a result to front end again ? 
=========================================

Flutter app can definitely make http requests and even upload files or images. What you will have to do is make your machine model a consumable rest api such that when your flutter app posts the image from the frontend, the whole computation is done at the backend and the results is presented via the api response. With that response, you can build your frontend accordingly.

Suzuki Tomohiro

unread,
Oct 24, 2020, 4:38:37 PM10/24/20
to ABADA SAMUEL, Abanoub Lotfy, Flutter Development (flutter-dev)
can Flutter apps can make HTTP requests (uploading an image) to your Python backend and make a machine learning algorithm then send a result to front end again ?

Yes.

A resource I found by searching for “Flutter image upload”: https://stackoverflow.com/a/49645074
It’s a quite common task.

Reply all
Reply to author
Forward
0 new messages