is there any way to deploy custom ML models in flutter? - flutter

I am trying to create a flutter app using the ML model from the below link.
https://www.tensorflow.org/lite/models/style_transfer/overview

I haven't played with Flutter but there are some promising articles article 1 article 2 article 3 that gives code snippets to insert tensorflow lite dependencies, to make assets folder and load models. You can check them and I hope you get a first idea how to proceed. Style transfer is a medium to hard coding project though. I suggest to start from simpler tasks as classification problems.
Happy coding

I have used this style_transfer model in flutter app before. unfortunately, I've lost that code (I did not use git). But I can give suggestions on that.
For using this custom model you will have to use https://pub.dev/packages/tflite_flutter.
The trick here is you will have to see model's input shape (image_shape=(384,384,3), style_shape=(256,256,3) and output size (shape=(384,384,3) and also shape of bottleneck). You can resize image using https://pub.dev/packages/image.
with these two, you are good to go. Sorry for bad english and I know I am too much late but maybe someone else will find it useful.
Happy coding!
Edited: So I have found the code. I stored a copy of it in my google drive. I have uploaded it on github https://github.com/Rizwan2613/style-transfer. Please do read Readme file. Thanks

There is a recently published flutter plugin for integrating an arbitrary TFLite model.
https://pub.dev/packages/tflite_flutter
Please see the README of the pub package and see how you can bundle the .tflite models and how to load / run them in flutter.
There is a blog post on how to use this flutter plugin, but it uses a different model (text classification) as an example.
https://medium.com/#am15hg/text-classification-using-tensorflow-lite-plugin-for-flutter-3b92f6655982

You can upload custom tensorwflow model to firebase ML KIT (custom tab), and integrate with firebase API in your flutter project.

Related

In flutter,How to design an app walkthrough using flutter_intro package?

I’m new in flutter. Recently I wanted to add app walkthrough for new users in the first log in in app. After many research, I find a package called flutter_intro( https://pub.dev/packages/flutter_intro). But reading the documentation, I find it difficult to understand it properly.but I want to do exact feature in my app what flutter_intro package do. You can suggest me any other packages like this.
It would be appreciated if anyone could help me regarding this by example.
You can use showcaseview package which is easy to use and has very good documentation

Render openCTM files on android (especially flutter)

I'm currently developing an App in Flutter which i need to display 3D models. I know. Flutter is, at least at the moment, not the best choice (or shouldn't be even a choice) to build 3d apps but unfortunately i didn't know this when i started developing. I managed to render a simple '.obj' file with a simple engine I found on the internet:
https://levelup.gitconnected.com/a-simple-3d-engine-in-flutter-cc4a7edc943e
Now my problem:
My app needs to contain multiple hundred 3D models so I need to reduce the app's size. I experimented with openCTM to compress my '.obj' models and got a good result.
Now i want to display these '.ctm' files in my app. And thats the point where I got stuck.
I've researched for days if there's a sample or a tutorial to solve my problem but I haven't found one.
I've read the official openCTM documents and found openCtm reader ported to javascript (https://github.com/jcmellado/js-openctm) and dart (https://github.com/nelsonsilva/dart-openctm). And now I dont know where to begin.
I guess I need to, if my problem is solvable in flutter, modify the engine im currently using and add the openCTM reading part to it.
I hope that anyone of you can help me with my problem. Maybe even solved it already. Furthermore I hope I explained my problem clear enough.
If you can provide a native solution it would helpful, too.
Thank you in advance!

Can you tell me more about global configuration

I have read in flutter.dev about global_configuration it is:
"A flutter package for managing different configurations by merging them together and making them available everythere inside the app via a singleton."
this link of global_configuration library
but honestly i didn't understand much about what the library dose i searched in youtube and google didn't find much about it if you can tell me where to use it and what its benefit i would very glad and thank you..

Parse data from image? [duplicate]

I am doing an app in which I require a business card reader I googled alot but BBY is the only solution which I was able to find out. Can anybody help me out with some opensource library which can be tweaked or used directly as a business card reader.
Please enlighten me on this.
you can look into the Tesseract open source engine... its pretty good for image processing.. i mean it will extract the text out of the image but then you will have to process it to extract name ,phone numbers and other details.
this guy has explained how to use it in iOS .. http://tinsuke.wordpress.com/2011/11/01/how-to-compile-and-use-tesseract-3-01-on-ios-sdk-5/
We started an open source project to build a Javascript library (based on the OCR engine tesseract.js for the OCR part) that exctract the relevant data from a business card based on heuristic criteria.
The library (BCR Library, available on github) is usable in any html project (included mobile cordova, phone gap or ionic projects) just including it via script tag.
The library doesn't have any external api call and fully works offline.
I think that you should give a try to Covve Bussiness Card Scan API. The quality of the result is great in various languages. You can check a comparison analysis of similar services here.
[Disclosure] I'm part of the team developing the service.

iphone: business card reader sdk apart from ABBY

I am doing an app in which I require a business card reader I googled alot but BBY is the only solution which I was able to find out. Can anybody help me out with some opensource library which can be tweaked or used directly as a business card reader.
Please enlighten me on this.
you can look into the Tesseract open source engine... its pretty good for image processing.. i mean it will extract the text out of the image but then you will have to process it to extract name ,phone numbers and other details.
this guy has explained how to use it in iOS .. http://tinsuke.wordpress.com/2011/11/01/how-to-compile-and-use-tesseract-3-01-on-ios-sdk-5/
We started an open source project to build a Javascript library (based on the OCR engine tesseract.js for the OCR part) that exctract the relevant data from a business card based on heuristic criteria.
The library (BCR Library, available on github) is usable in any html project (included mobile cordova, phone gap or ionic projects) just including it via script tag.
The library doesn't have any external api call and fully works offline.
I think that you should give a try to Covve Bussiness Card Scan API. The quality of the result is great in various languages. You can check a comparison analysis of similar services here.
[Disclosure] I'm part of the team developing the service.