I cannot deploy my matlab code into Raspberry pi 4.

I'm having trouble deploying the matlab code to run on the Raspberry Pi 4 for my final year project. I've included screenshots of error message as well as the matlab code. Can anyone please assist me?
Thank you.

 採用された回答

Sayan Saha
Sayan Saha 2021 年 12 月 29 日

1 投票

The error indicates that "vehicleDetectorACF" function is not supported for code-generation. What is the implementation of that function? Also, can you generate code properly on your host machine with this entry-point function?

7 件のコメント

Nasrin Islam
Nasrin Islam 2021 年 12 月 29 日
Yes sir. It works perfectly in the host computer. The error occurs while trying to deploy it to raspberry pi 4.
Sayan Saha
Sayan Saha 2021 年 12 月 29 日
I see. What is the implementation of "vehicleDetectorACF"? Can you attach the code-generation report that is generated when you deploy to Raspi 4?
Nasrin Islam
Nasrin Islam 2021 年 12 月 29 日
Sir I have attached the screenshot of the code generation report. Thank you
Sayan Saha
Sayan Saha 2021 年 12 月 29 日
Hi Nasrin,
I meant attach the report directly so that I can open it on my end (not as a screenshot). Also attach the report that you get when you perform code-generation on host.
Nasrin Islam
Nasrin Islam 2021 年 12 月 30 日
Respected sir,
I apologize for taking so long to reply. Sir, I have attached the code generation report in a zip file.
Thank you.
Sayan Saha
Sayan Saha 2022 年 1 月 2 日
Thanks for attaching the report. I didn't realize vehicledetectoracf is a function provided by MathWorks earlier. As I mentioned the issue you are running into is that this function is not supported for code-generation. If it was it would have been mentioned in the documentation: https://www.mathworks.com/help/driving/ref/vehicledetectoracf.html
Looking further at the documentation, I see that this function returns an object of the class acfobjectdetector which is supported for code-generation as mentioned in this documentation link. https://www.mathworks.com/help/vision/ug/example-ObjectDetectionFromImages.html is the example showing how to generate code for the acfobjectdetector object.
Hope this helps and Happy New Year!
~Sayan
Nasrin Islam
Nasrin Islam 2022 年 1 月 2 日
Thank you for your kind response,sir. Happy new year to you too. I will check out the documents. Thank you.

サインインしてコメントする。

その他の回答 (1 件)

yanqi liu
yanqi liu 2021 年 12 月 19 日

1 投票

yes,sir,may be setup Mathworks Raspbian image and connect MATLAB+Device

1 件のコメント

Nasrin Islam
Nasrin Islam 2021 年 12 月 22 日
Thank you for your response, sir. I have already done these steps but still cannot deploy the code

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by