日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人工智能 > 循环神经网络 >内容正文

循环神经网络

matlab打开笔记本摄像头_matlab窗口调用摄像头

發布時間:2024/7/5 循环神经网络 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 matlab打开笔记本摄像头_matlab窗口调用摄像头 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

更改”.m“文件:

function varargout = untitled1(varargin)

% UNTITLED1 MATLAB code for untitled1.fig

%????? UNTITLED1, by itself, creates a new UNTITLED1 or raises the existing

%????? singleton*.

%

%????? H = UNTITLED1 returns the handle to a new UNTITLED1 or the handle to

%????? the existing singleton*.

%

%????? UNTITLED1('CALLBACK',hObject,eventData,handles,...) calls the local

%????? function named CALLBACK in UNTITLED1.M with the given input arguments.

%

%????? UNTITLED1('Property','Value',...) creates a new UNTITLED1 or raises the

%????? existing singleton*.? Starting from the left, property value pairs are

%????? applied to the GUI before untitled1_OpeningFcn gets called.? An

%????? unrecognized property name or invalid value makes property application

%????? stop.? All inputs are passed to untitled1_OpeningFcn via varargin.

%

%????? *See GUI Options on GUIDE's Tools menu.? Choose "GUI allows only one

%????? instance to run (singleton)".

%

% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help untitled1

% Last Modified by GUIDE v2.5 12-Mar-2015 20:53:43

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name',?????? mfilename, ...

'gui_Singleton',? gui_Singleton, ...

'gui_OpeningFcn', @untitled1_OpeningFcn, ...

'gui_OutputFcn',? @untitled1_OutputFcn, ...

'gui_LayoutFcn',? [] , ...

'gui_Callback',?? []);

if nargin && ischar(varargin{1})

gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before untitled1 is made visible.

function untitled1_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.

% hObject??? handle to figure

% eventdata? reserved - to be defined in a future version of MATLAB

% handles??? structure with handles and user data (see GUIDATA)

% varargin?? command line arguments to untitled1 (see VARARGIN)

% Choose default command line output for untitled1

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes untitled1 wait for user response (see UIRESUME)

% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = untitled1_OutputFcn(hObject, eventdata, handles)

% varargout? cell array for returning output args (see VARARGOUT);

% hObject??? handle to figure

% eventdata? reserved - to be defined in a future version of MATLAB

% handles??? structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure

varargout{1} = handles.output;

global vid;

vid = videoinput('winvideo');

%set(vid,'ReturnedColorSpace','grayscale');

function pushbutton1_Callback(hObject, eventdata, handles)

axes(handles.axes1);

global vid;

vidRes = vid.VideoResolution;

nBands = vid.NumberOfBands;

hImage = image( zeros(vidRes(2), vidRes(1), nBands) );

preview(vid, hImage);

% --- Executes on button press in pushbutton2.

function pushbutton2_Callback(hObject, eventdata, handles)

% hObject??? handle to pushbutton2 (see GCBO)

% eventdata? reserved - to be defined in a future version of MATLAB

% handles??? structure with handles and user data (see GUIDATA)

axes(handles.axes2);

global vid;

f=getsnapshot(vid);

imshow(f);

總結

以上是生活随笔為你收集整理的matlab打开笔记本摄像头_matlab窗口调用摄像头的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。