%datacollection Code
clc
clear all
close all
warning off
c=webcam;
x=0;
y=0;
height=200;
width=200;
bboxes=[x y height width];
temp=0;
while temp<=300
    e=c.snapshot;
    IHand = insertObjectAnnotation(e,'rectangle',bboxes,'Processing Area');
imshow(IHand);
filename=strcat(num2str(temp),'.bmp');
es=imcrop(e,bboxes);
es=imresize(es,[227 227]);
    imwrite(es,filename);
    temp=temp+1;
    drawnow;
end
clear c;
