Simulink face detection on raspberry pi
3 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Raspberry Pi Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!