How can run OpenCV code on Matlab with Simulink raspberry pi support package?

1 Ansicht (letzte 30 Tage)
Hi
Im working on image processing problem with some object detection code on C++ and OpenCV. I need to pass to the Simulink block some offset from the detected object (lateral distance to some object in the image). Im using raspberry pi 2 model B and have already installed Simulink raspberry pi support package. So the input to the Simulink block of the raspberry pi support package is that lateral distance( in cm) obtained from the image processing code in OpenCV and C++. That input is needed for the Simulink block for further control processing. So my first consider and question is, if the IP camera should be connected to raspberry pi and the image processing code (OpenCV and C++) should run on raspberry pi or that is not correct?
Then if the OpenCV C++ code is running in the Simulink, how should be done that (how to convert it OpenCV C++ image processing code to MatLab/Simulink function or block?
Please any help?

Antworten (0)

Kategorien

Mehr zu Raspberry Pi Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by