From: AZZA Foster on
Solved the previos issue, was just me being stupid.
L1 = bwlabel (closebw); % Convert closebw to a label matrix %
L2 = regionprops (closebw,'area','boundingbox');
W = [closebw.area];
NR = Length (W);

??? Attempt to reference field of non-structure array.

Should "Length" have some value assigned to it or is that the structure that NR is using ???
From: AZZA Foster on
Thanks for pointing that out steve.

but im still getting this error, something to do with the length structure i think.

L1 = bwlabel (closebw); % Convert closebw to a label matrix %
L2 = regionprops (closebw,'area','boundingbox');
W = [closebw.area];
NR = length (W);

V = cat(1,D.BoundingBox);
figure,imshow (V);
From: AZZA Foster on
LOL, sorted it out now guys. Cheers Steve, I think these 18hr days non stop are starting to have an affect.
From: AZZA Foster on
Image Analyst and Lord Steve, THANKS for your help with the imaging process, after a bit more filtering and a few other additions i have finally got the boundary around the barcode on the sample image. I have tried it with a few other images and it seems to get so far about 75% through and destry the barcode, so i will have to place a few parameters in my code, to try and prevent that from happening in certain image situations.

Apart from that i am now labeling up the code and beginning to look at automating file inputs from a specific directory where all the images from the camera will be stored.

Keep you guys informed of my progress, cheers

AZZA
From: AZZA Foster on
Does anyone know how to extra the image inside a bounding box??
I wish to extract the barcode from the bounding box.