How do I create a pre-trained standalone application in MATLAB?
I used the workspace to run the code. I will like to create a standalone application so as to share with others without MATLAB to test the neural network.
Thanks
By stand-alone application, I am guessing that you want to create a GUI (Graphical User Interface) that people can use to test images on your network. If this is the case, you can either use the GUIDE or App Designer frameworks that MATLAB offers.
Note, however, if you plan on using MATLAB to develop this UI, the user will need MATLAB Runtime installed because you are coding in MATLAB. Just as if you created a program in python, the user would need python in order to run the program.
Related
I would like to learn my training file for tesseract new letters. I want use win 10 (I won't use linux) - for use tesseract Nuget-package in c#.net app.
I tried jTessBoxEditor but it's not working (first time error in registry, than cannot found fonts, than problem with java, than text2image doesn't work properly...). Editor SunnyPage could not even load the image without fail.
which program use for separating letters and creating training file as windows user
should I use tesseract or other OCR engine? It looks like tesseract isn't windows-user friendly
please post example training file for this three images - if there is any need of preprocessing (scale etc.) it should be done programaticaly (c#.net)
Which program use for separating letters and creating a training file?
Try this one: https://github.com/skotz/captcha-breaking-library
or:
OpenCV
OpenCV is a popular framework for computer vision and image processing. It is easy to use OpenCV to process the CAPTCHA images. It has a Python API so you can use it directly from Python.
Keras
Keras is a deep learning framework written in Python. It makes it easy to define, train and use deep neural networks with minimal coding.
TensorFlow
TensorFlow is Google’s library for machine learning. If you will be coding in Keras, but Keras doesn’t actually implement the neural network logic itself. Instead, it uses Google’s TensorFlow library behind the scenes to do the heavy lifting.
This involves either brute-forcing the captcha or running OCR algorithms on it to try and detect what is written in the captcha.
If you want to implement your own CAPTHA an algorithm please look into that abstract: http://cmp.felk.cvut.cz/~cernyad2/TextCaptchaPdf/DESIGNING%20CAPTCHA%20ALGORITHM%20SPLITTING%20AND%20ROTATING.pdf
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.800.3065&rep=rep1&type=pdf
I am building a code and trying to keep things as generic as possible. I have seen a number of tutorials and post but they are all platform specific (tensorflow\pytorch).
Is there a good way to load and use a previously trained neural network model in a manner that the code will be able to cope with both torch and tensorflow? Does it matter in which version of tensorflow\torch the network was built in? I want the code to be as generic as possible.
Also, do I need to know the structure of the original network or can I load it and use it without the notion of the structure?
I don't think it is possible to write a program that can load pre-trained models from both Torch and Tensorflow as they save in different formats.
You might want to look into the Open Neural Network Exchange Format (https://onnx.ai/) if you are creating the models yourself, this is an initiative backed by Amazon, Facebook, Microsoft, and others to create a portable file format for deep learning models.
I have written Matlab code( musclualr software package), frequently l have seen move application to the cloud service, and now l want to learn cloud computing, l start with my application, but l want to know the aims of converting matlab code to cloud service?
I know that this an old question. Since there could be anyone else looking for answers I will state it here.
I believe what you are trying to achieve is migrating your current matlab application to cloud service.
There are 2 ways that you can do this.
Using Matlab compiler - Matlab compiler lets you create DLL , jar depending on your language. Currently it supports .Net , Java , C/C++ , python etc.However there are limitations for this. As of you can't 100% guarantee that you will be able to rewrite youre entire codebase. and also matlab offers better solution for this scenario.(stated below)
Using Matlab production server - If you are looking to develop web application using your matlab code this is your ultimate solution I believe. matlab production server works like a REST service. you can host your matlab files(.m) inside the production server.
What happens here is matlab compiles your code using matlab compiler and deploy it in their cloud. afterwards you can consume this like a api through their sdk however.
https://in.mathworks.com/help/mps/qs/create-a-deployable-archive-for-matlab-production-server.html
I have attached the link here incase if anyone is interested.
Is it possible to install a MATLAB exe file along with its MCR on a web server and have some front end html code interact with it in terms of inputs and outputs? What web hosting server would be ideal for this? Will php make interacting with the web server easier?
The MATLAB code has multiple inputs that I want to have the user input into a form and each of those text fields corresponds to the a specific input. Once the user presses submit I want to run the MATLAB program on the server with the given inputs, and then display the array of outputs. Is that possible? Sorry, I am pretty savy with MATLAB but not with its Compilers, Coders, etc and not with web development either.
Have a look here:
Options for Deploying MATLAB Applications via the Web
Deploying MATLAB Code as a Web Application
For exactly this use case I created the project NuCompRes. There you also find a legal notice with respect to the MATLAB license.
For this scenario you have two options:
1-Compile your matlab code (no GUI) using MATLAB Builder JA (Java) or MATLAB Builder NE (dot NET). In that way you can create a jar or dll file with your Matlab code that can be invoked inside a web application created in java or aspx. This solution is fine if you have few users over the web. For this approach you need to have/buy the Matlab builder JA/NE in order to compile your matlab code properly.
2-The second approach, is to use MATLAB Production Server. This is a more complex (and more expensive) solution. Basically MATLAB Production Server is a software which must be intalled in a (web) server, which can handle multiple request of MATLAB functions executions at the same time and is able to comunicate java or dot net application with MATLAB code. This software comes in blocks of 24*n users licenses (24 user, 48 users, and so on) and can manage MATLAB functions/libraries created in different MatLab versions.
In both cases you must create in MatLab your core code (the heavy and mathematical part of your computation) and invoke it inside the web application (at this time The Mathworks only supports Java and dot net). The GUI part is not expected to be created in MATLAB.
Can I use MATLAB for website development?
I want to embed image processing into C#.net web application.
If any other tool used for website development.
Thanks
Abhishek
One way would be to create CGI files that could be called by a web server. Have a look here and here.
EDIT:
I was thinking about this more and I think that you could also use matlab for web applications through python. Specifically, mlabwrap would give very nice interface to matlab. mlabwrap is very good, i personally use it to access matlab from python. Thus you could build web app using python's pylons or django and access matlab through mlabwrap.
You could have a look at Matlab Builder NE, a Mathworks product for creating .Net components that might be perfect to integrate with your .Net web app:
http://www.mathworks.com/products/netbuilder/
No personal experience with this, but it sounds like something that would suit your needs perfectly.