Simulink face detection on raspberry pi

조회 수: 1 (최근 30일)
Matthew Viney
Matthew Viney 2019년 10월 21일
답변: Kaustav Bhattacharya 2020년 12월 22일
Hi,
I'm trying to create a simulink model which uses the cascade object detector for face detection to run standalone on a Raspbery Pi.
When i try to run the model i get the error: Function TAR tried to add two files as "types_c.h".
The mathworks page for the Cascade object detector claims that it is autocodeable but requires the OpenCV libraries.
How do I go about linking the OpenCV libraries to my Raspberry Pi?
Thanks,
Matt

답변 (1개)

Kaustav Bhattacharya
Kaustav Bhattacharya 2020년 12월 22일
This error occurs because the model name and the header file being included have the same name. When TAR tries to package the files, it attempts to add the custom include file "types_c.h", as well as a header file corresponding to the model (also "types_c.h").
To get around the issue, simply rename either the custom included file, or the model (renaming the model should be easier). If you rename the model to "types_c_model.slx", the model should run/build without issue.

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by