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
回答(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!