I am getting an error Reference to non-existent field 'BoundingBox'. while using the function please help
이전 댓글 표시
function [bboxes,flow] = findPet(frameGray, opticFlow)
% Calculate Optical Flow
flow = estimateFlow(opticFlow,frameGray);
% Threshold Image
threshImage = ( flow.Magnitude > 4);
% Find connected components and filter regions
[~,regions] = filterRegions(threshImage);
if(size(regions) > 0)
bboxes = regions.BoundingBox;
else
bboxes = [];
end
end
댓글 수: 3
Walter Roberson
2020년 7월 13일
pratyush ghosh
2020년 7월 13일
pratyush ghosh
2020년 7월 13일
편집: Walter Roberson
2020년 7월 13일
답변 (1개)
Walter Roberson
2020년 7월 13일
0 개 추천
You need to pull in the newer version of cnnPredict, which is at https://github.com/NVIDIA-developer-blog/code-samples/tree/master/MATLAB_deeplearning
댓글 수: 2
pratyush ghosh
2020년 7월 14일
Walter Roberson
2020년 7월 17일
Which packages did you load from where to put together this code? The ones I find on mathworks.com do not reference dilate, but I do see dilate documented for layers at https://www.vlfeat.org/matconvnet/mfiles/simplenn/vl_simplenn/
카테고리
도움말 센터 및 File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!