U-Net shallow or deep?
1 次查看(过去 30 天)
显示 更早的评论
0 个评论
采纳的回答
Walter Roberson
2022-6-12
It is a convolutional network, and those are always considered "deep"
0 个评论
更多回答(1 个)
kimem
2022-6-9
clc;
clear all;
close all;
gestdatabase;
vid = videoinput('winvideo', 1, 'YUY2_640x480'); %specify the video adaptor
src = getselectedsource(vid);
vid.ReturnedColorspace = 'grayscale'; %define the color format to GRAYSCALE
vid.FramesPerTrigger = 5;
preview(vid); %preview the video object
while(1)
preview(vid); %preview the video object
gesture=getsnapshot(vid); %capture the image of interest
for i=1:30
J{i}=corr2(gesture,gest1Cell{i});
L{i}=corr2(gesture,gest2Cell{i});
end
greatestJ=cellfun(@(a) max(a(:)),J);
R = max(greatestJ(1,:));
greatestL=cellfun(@(b) max(b(:)),L);
S = max(greatestL(1,:));
H = [R,S];
G= max(H);
if ((G==R)&&(G>0.55))
display('FORWARD');
elseif ((G==S)&&(G>0.55))
display('BACKWARD');
else
display('NO MOTION');
end
end
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!