Hi Techies,
Currently, I am working on the text extraction project. For that, I am using CRAFT + OCR example code from mathworks library. When I test the code, it was working fine and I am doing some update in the preprocessing module prior to this module. After integration of module, it was working fine but suddenly, throwing some error and warning. Below I have provided the error and warnings for your reference. Kindly check and assist me on this.
Warning: While loading an object of class 'dlnetwork':
Method 'single' is not defined for class 'dlarray' or is removed from MATLAB's search path.
Error in nnet.internal.cnn.layer.FunctionalLayer/setupForFunctional (line 33)
single( dlarray( this.LearnableParameters(i).Value ) );
Error in nnet.internal.cnn.analyzer.util.LayerAnalyzer/setupForFunctional (line 338)
this.InternalLayer = this.InternalLayer.setupForFunctional();
Error in nnet.internal.cnn.analyzer.NetworkAnalyzer/setupForFunctional (line 485)
this.LayerAnalyzers(ii).setupForFunctional();
Error in nnet.internal.cnn.analyzer.NetworkAnalyzer (line 166)
this.setupForFunctional();
Error in dlnetwork>iCheckFunctionalConstraints (line 1327)
analyzedLayers = nnet.internal.cnn.analyzer.NetworkAnalyzer(lg, isFunctional, exampleInputs);
Error in dlnetwork/initialize (line 684)
analyzedLayers = iCheckFunctionalConstraints(externalLayerGraph, dlX);
Error in dlnetwork (line 226)
net = initialize(net, dlX{:});
Error in dlnetwork.loadobj (line 944)
net = dlnetwork(in.LayerGraph, exampleInputs{:}, 'Initialize', in.Initialized);
Error in detectTextCRAFT (line 116)
load("craftNet.mat");
Error in Logo_Recognition (line 21)
bbox = detectTextCRAFT(inputImage,CharacterThreshold=0.2);
Error in Logo_CodeGen_Check (line 25)
[ocrOutput] = Logo_Recognition(folderName,FileName,I);
> In detectTextCRAFT (line 116)
In Logo_Recognition (line 21)
In Logo_CodeGen_Check (line 25)
Unrecognized function or variable 'dropTrailingODims'.
Error in dlarray>iSetLayout (line 892)
obj = dropTrailingODims(obj);
Error in dlarray (line 206)
obj = iSetLayout(obj, perm, fmt);
Error in detectTextCRAFT (line 140)
Ipreprocessed = dlarray(Ipreprocessed,'SSCB');