채택된 답변

Walter Roberson
Walter Roberson 2022년 6월 12일

0 개 추천

It is a convolutional network, and those are always considered "deep"

추가 답변 (1개)

kimem
kimem 2022년 6월 9일

0 개 추천

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

댓글 수: 2

Walter Roberson
Walter Roberson 2022년 6월 9일
How does this answer the question?
Gobert
Gobert 2022년 6월 12일
I have the same question. That code has nothing to do with the question asked

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

질문:

2020년 9월 27일

답변:

2022년 6월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by