How can I modify the "Detect and Track face" example in Simulink for acquiring video from an Android device, obtaining the apk file?

1 ビュー (過去 30 日間)
Elisa Mangiameli
Elisa Mangiameli 2019 年 2 月 15 日
回答済み: Sruthi Yenugula 2021 年 3 月 18 日
I've tried in this way ( attached file), but it doesn't work.
  2 件のコメント
Elisa Mangiameli
Elisa Mangiameli 2019 年 2 月 21 日
Hi,
Thanks for your interest.
In the diagnostic viewer I get some errors like:
"Simulink does not have enough information to determine output sizes for this block. If you think the errors below are inaccurate, try specifying types for the block inputs and/or sizes for the block outputs" and
"Declaration of upper bound size as Inf is not supported. Please consider enabling dynamic memory allocation to allow unbounded sizes".
I've attached the diagnostic file in which there are all the issues with the model.

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

回答 (2 件)

Sruthi Yenugula
Sruthi Yenugula 2019 年 2 月 22 日
Hi Elisa,
Computer vision functions are used in this Simulink model, those functions depend on OpenCv library. Currently those functions cannot be deployed on Android.
"Simulink does not have enough information to determine output sizes for this block. If you think the errors below are inaccurate, try specifying types for the block inputs and/or sizes for the block outputs" and
To fix the above issue, you need to check the dynamic memory allocation for MATLAB functions setting in config set. But even after doing that you will get build error due to the above reason.
  1 件のコメント
Elisa Mangiameli
Elisa Mangiameli 2019 年 2 月 24 日
Hi Sruthi,
thanks for your useful answer, now I’ve understood the problem.
Could you tell me if there is another way to obtain a face detection system on Android, using Matlab?

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


Sruthi Yenugula
Sruthi Yenugula 2021 年 3 月 18 日
You can use this example
https://www.mathworks.com/help/supportpkg/android/ref/detect-and-track-face-on-an-android-device.html

Community Treasure Hunt

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

Start Hunting!

Translated by