Simulink model build fail with 'Function TAR tried to add two files as "types_c.h".'

2 views (last 30 days)

Hello, I am trying to build a simulink model using Raspberry Pi 3 model B for face detection.

I am referring to the model here:

https://www.mathworks.com/help/vision/examples/detect-and-track-face.html

I replace the video input to V4L2 video capture from raspberry pi.

But when I run the model, I have the error

### Creating data type transition file rasp_complicated_dt.h
### File v4l2_capture.c associated with S-Function 'v4l2_video_capture_sfcn' (used in 'rasp_complicated/V4L2 Video Capture') does not exist
.### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: GNU GCC Raspberry Pi v1.0 | gmake (64-bit Windows)
### 'C:\Users\Asus\Documents\reference for fyp\streamingFaceRecognitionV2.1\rasp_complicated_ert_rtw\rasp_complicated.mk' is up to date
### Building 'rasp_complicated': make  -f rasp_complicated.mk all
### Build procedure for model: 'rasp_complicated' aborted due to an error.
Function TAR tried to add two files as "types_c.h".

and it fail to run the model on my Raspberry Pi. Any idea what cause the problem?

Accepted Answer

Saw Zheng Yi
Saw Zheng Yi on 20 Apr 2018
I think I know why. Code generation is not supported for vision.CascadeObjectDetector in Simulink.

More Answers (0)

Categories

Find more on Raspberry Pi Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!