The Error using matlab. The UI. Control. The UIControl/set
Invalid or does object.
The Error in videoSubject2 & gt; Pushbutton2_Callback (line 134)
Set (handles edit1, 'String' char (label));
The Error in gui_mainfcn (line 95)
Feval (varargin {that});
The Error in videoSubject2 (line 42)
Gui_mainfcn (gui_State, varargin {that});
The Error in
Matlab. Graphics. Internal. Figfile. Figfile/read> @ (hObject, eventdata) videoSubject2 (' pushbutton2_Callback, hObject, eventdata, guidata (hObject))
Error while evaluating DestroyedObject Callback.
Specific as follows:
Winvideo imaqhwinfo (' ');
Vid1=videoinput (' winvideo ', 1);
UsbVidRes1=get (vid1, 'videoResolution');
NBands1=get (vid1, 'NumberOfBands');
The axes (handles. Axes1);
HImage1=imshow (zeros (usbVidRes1 (2), usbVidRes1 (1), nBands1));
The preview (vid1 hImage1);
Nnet=alexnet;
While true
Frame=getsnapshot (vid1);
Frame=imresize (frame, [227227]).
Label=the classify (nnet, frame);
Set (handles edit1, 'String' char (label));
Drawnow;
End
Hope to have a great god can help solve,
CodePudding user response:
File back to bring up the question, is a function of GUI interface button corresponding use have a problem?CodePudding user response:
Hello, you this code is not complete,CodePudding user response:
Can you leave a contact, exchange communication