what means this error , while trying to use vision.blobAnalysis to detect motions?

9 ビュー (過去 30 日間)
syhem samti
syhem samti 2015 年 11 月 21 日
コメント済み: NIHARIKA MITTAL 2017 年 11 月 12 日
what means this error , while trying to use vision.blobAnalysis to detect motions?
Error using coder.internal.errorIf (line 8)
The POSITION matrix must have four columns for shape Rectangle
Error in insertShape>errIf1 (line 796)
coder.internal.errorIf(condition, msgID, strArg);
Error in insertShape>crossCheckShapePosition (line 347)
errIf1(errCond, 'vision:insertShape:posColsNot4ForRect', shape);
Error in insertShape>crossCheckInputs (line 317)
crossCheckShapePosition(shape, position);
Error in insertShape>validateAndParseInputs (line 176)
crossCheckInputs(shape2, position, color);
Error in insertShape (line 103)
validateAndParseInputs(I, shape, position, varargin{:});
Error in btw (line 134)
result = insertShape(frame, 'Rectangle', bbox, 'Color', 'green');

回答 (1 件)

Walter Roberson
Walter Roberson 2015 年 11 月 22 日
Check size(bbox) . The bbox that you are passing in must have 4 columns, such as a row vector of 4 elements.
  12 件のコメント
syhem samti
syhem samti 2015 年 11 月 26 日
thank you for you answers...i tried this too but another error appears...anyway i just found another way to extract those attributes
NIHARIKA MITTAL
NIHARIKA MITTAL 2017 年 11 月 12 日
Can you please share the other way. I am also stuck in this same situation

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

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by