Prev: Windows 7 Home Premium vs. Windows 7 Professional (using MATLAB R2007a or R2007b)
Next: extract field in excel
From: AZZA Foster on 27 Apr 2010 10:32 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 27 Apr 2010 10:36 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 27 Apr 2010 10:45 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 27 Apr 2010 17:58 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 27 Apr 2010 19:28
Does anyone know how to extra the image inside a bounding box?? I wish to extract the barcode from the bounding box. |