Simulink face detection on raspberry pi

1 visualización (últimos 30 días)
Matthew Viney
Matthew Viney el 21 de Oct. de 2019
Respondida: Kaustav Bhattacharya el 22 de Dic. de 2020
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

Respuestas (1)

Kaustav Bhattacharya
Kaustav Bhattacharya el 22 de Dic. de 2020
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.

Categorías

Más información sobre Raspberry Pi Hardware en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by