As i want to make an android app through android studio and the detection process which i want to done through matlab.So,How i integrate matlab detection code to integrate with android studio,Kindly suggest me the tutorials or any helpful material.
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
As i want to make an android app through android studio and the detection process which i want to done through matlab.So,How i integrate matlab detection code to integrate with android studio,Kindly suggest me the tutorials or any helpful material.
0 commentaires
Réponses (1)
Sruthi Yenugula
le 13 Juil 2018
Modifié(e) : Walter Roberson
le 13 Juil 2018
You can use MATLAB coder to generate C code. Then integrate that with Android Studio using JNI.
If you want the Android Application also to get generated automatically you can use the following approach You can use Simulink Support Package for Android Devices to convert a Simulink Model to Android Application.
You can embed your MATLAB code(detection code) in MATLAB function block and use this with other Android Blocks and create Android Applications with one Click.
You can refer to the following example which uses MATLAB function block https://www.mathworks.com/help/supportpkg/android/examples/control-lego-mindstorms-ev3-robot-using-android-device.html
1 commentaire
Walter Roberson
le 13 Juil 2018
Modifié(e) : Walter Roberson
le 13 Juil 2018
Note that there is no support for graphics display or for use of camera for input on Android when you use MATLAB Coder.
To use those, you would need to use coder.ceval(); or see https://www.mathworks.com/help/simulink/slref/coder.externaldependency-class.html
If you were to use Simulink with a MATLAB Function block, then you would be able to use Android blocks for (some) display and for camera use.
Voir également
Catégories
En savoir plus sur Run on Android Device dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!