Hello all, I am getting an error "Dot indexing is not supported for variables of this type."

2 次查看(过去 30 天)
Below is the error code.
Dot indexing is not supported for variables of this type.
Error in yolov2ObjectDetector/parseDetectInputs (line 580)
networkInputSize = network.Layers(this.LayerIndices.ImageLayerIdx).InputSize;
Error in yolov2ObjectDetector/detect (line 413)
params = this.parseDetectInputs(I,varargin{:});
Error in secondpage>pushbutton1_Callback (line 242)
[bboxes,scores,label] = detect(detector,s(k).cdata);
Error in gui_mainfcn (line 95)
feval(varargin{:});
Error in secondpage (line 42)
gui_mainfcn(gui_State, varargin{:});
Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)secondpage('pushbutton1_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback.
May you please help resolve this.
Thank you
  6 个评论
Walter Roberson
Walter Roberson 2022-9-26
The github link is missing some files; I had to download from the Google Drive link. And edit the code, because it uses \ directory separators.
Amanpreet
Amanpreet 2022-9-26
@Walter Roberson Thanks for helping with the same. Code is running now. I did the debugging to track back and it said that Deep learning toolbox was not installed.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2022-9-27
编辑:Walter Roberson 2022-9-27
I do not get that error when I test with R2022b on my system. Which MATLAB release are you using?
I did have to make some changes to files to get the code to run on my system, because it had hardcoded paths and used \ as the directory separator; I also worked around a warning. I have attached the modified versions.
Also, most of the test videos do not work at all on my system; I had to use sdVideo.mp4

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programming 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by