필터 지우기
필터 지우기

I'm working on an image processing project which employs rasberry pi. I have written the code in matlab using image processing toolbox and computer vision. Can i make a standalone executable application and dump it in the pi?

조회 수: 1 (최근 30일)
Or can i convert this matlab code to any other language which is suited for rasberry pi(pyhton)???

답변 (2개)

M.Khan
M.Khan 2016년 1월 7일
If your MATLAB code generates portable C code, you can create standalone executable on Raspberry Pi. Here are the steps:
  • Use MATLAB coder to generate portable C Code
  • Use packNGo to generate zip folder
  • Transfer the zip folder to your target hardware (Raspberry Pi)
  • Create makefile and build executable on Raspberry Pi
Here is the list of Image Processing Toolbox functions that explains whether the function generates portable C code: http://www.mathworks.com/help/images/list-of-supported-functions-with-usage-notes.html
Here is the list of Computer Vision System Toolbox functions that explains whether the function generates portable C code: http://www.mathworks.com/help/vision/ug/code-generation-support-usage-notes-and-limitations-for-functions-classes-and-system-objects.html
HTH,
Mohammad.
  댓글 수: 2
Walter Roberson
Walter Roberson 2016년 1월 7일
Note: MATLAB Coder and MATLAB Compiler are available for Academic license and for Professional / Commercial license, but not for Student Version or Home license. MATLAB Coder is a fairly expensive product, about $US8000 for the Professional license.
However, if you go through the Simulink route, then all current licenses of MATLAB (including Student Version) that have Simulink can generate and deploy to the Raspberry Pi without requiring MATLAB Coder.
Martin Florek
Martin Florek 2016년 7월 12일
Hello M.Khan and all Excuse me, and someone has implemented the process but remained only in theory? I try to run demo "Code Generation for Face Tracking with PackNGo", but I had problems with paths. But this is another problem that I have removed. Now I want to know how to create a Makefile for Raspberry Pi, since the code generator create files which need dll and lib? Probably I need to have installed OpenCV on RPI, too. {.so (shared object) matlab/embedded coder does not support?}. I use Win PC. Thank you for your help, support, advice and time.

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2016년 1월 7일
편집: Walter Roberson 2016년 1월 7일
The Raspberry Pi cannot run .exe produced by MATLAB Compiler.
If you tweak your code and package it into a Simulink MATLAB Function Block then it can potentially be deployed to the raspberry using the Simulink facilities.
  댓글 수: 1
Apoorv Lokhande
Apoorv Lokhande 2016년 6월 30일
Hi Walter,
Can you provide any examples on how to package a code into MATLAB Function block. I am working on this Thingpeak Project and have developed a code for the same but I am not able to generate the car counter block in the model given.
May you please help me?
Thank you, Apoorv

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by