Implement our work in Android?

1 回表示 (過去 30 日間)
Abed Nego Lubis
Abed Nego Lubis 2018 年 4 月 25 日
回答済み: Sruthi Yenugula 2018 年 5 月 18 日
Hi, I implementing image noise detection in Matlab. I have write the function and demo, but i run it in matlab. How to implement the function that i have code in to android device, So i can input the image from my android device and i can access the fuction from my device and i get the noise level from the image. Some of my friends told me to turn my matlab work into API, so the android will call the API, But i dont know how to do that. Thank you

回答 (1 件)

Sruthi Yenugula
Sruthi Yenugula 2018 年 5 月 18 日
You can use Simulink Support Package for Android Devices to convert a Simulink Model to Android Application. You can embed your MATLAB code in MATLAB function block and use this with other Android Blocks and create Android Applications with one Click.
To get camera frames use Android Camera Block and to display it on Phone screen, use Android Video Display Block. Connect camera Block output with input of MATLAB function block and input of Video Display block with output of MATLAB function block.
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
You can refer to the following example to get camera frames and display https://www.mathworks.com/help/supportpkg/android/examples/color-replacement.html

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by