MATLAB Coder Does Not Support Input of Unbounded Size

4 次查看(过去 30 天)
So I have been trying to turn the following function into an MEX file.
function [frame] = displayTrackingResults1(frame,isfull,bboxes,labels,string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11)
if isfull ==1
frame = insertObjectAnnotation(frame, 'rectangle',bboxes, labels);
end
frame = insertText(frame, [1000 700], string1);
frame = insertText(frame, [1000 740], string2);
frame = insertText(frame, [1000 780], string3);
frame = insertText(frame, [1000 820], string4);
frame = insertText(frame, [1000 860], string5);
frame = insertText(frame, [1000 900], string6);
frame = insertText(frame, [1000 940], string7);
frame = insertText(frame, [79 838], string8);
frame = insertText(frame, [77 860], string9);
frame = insertText(frame, [80 882], string10);
frame = insertText(frame, [80 904], string11);
end
So my problem has been that I keep getting this error for insertObjectAnnotation that says "This System object method does not support output of unbounded size." In the "Define Input Types" section of the MATLAB Coder app I defined frame as having the following dimensions [(up to 10000),(up to 10000,3),3], bboxes as having the dimensions [(up to 10000), 4], and labels as having the following dimensions [(up to 10000),1].
It seems to me like none of these inputs are unbounded. Does anyone know why I'm getting this error and what I can do to get rid of it? I would greatly appreciate anyone's help with this.
  1 个评论
Alessio Gagliardi
Alessio Gagliardi 2018-10-22
Hi Jacob Mevorach, I hit the same issue, could you please explain how do you solved the problem? Thanks in advance.

请先登录,再进行评论。

采纳的回答

Kushagr Gupta
Kushagr Gupta 2017-6-9
I feel that the dimension bounds being specified are not getting reflected for code generation purposes somehow. The following link mentions a way to specify the bounds within the code itself using 'assert' or 'coder.varsize' statements and it could resolve the issue:
If that also does not help, feel free to create a Techincal Support request with a reproduction model and steps so that someone can assist you further.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Labels and Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by