image thumbnail

vision_based_barcode_reader

by

 

This program can read 3 barcode ean13,code 39,code 128c by stable image,and by camera,

s=tongmoivach(c,td)
function s=tongmoivach(c,td)
    ii=1;
    s=[1:td];
    for k=1:td
        j=0;
        if c(ii)==0
            while (c(ii)==0)
                j=j+1;
                ii=ii+1;
                s(k)=j;
            end
        elseif c(ii)==1
            while (c(ii)==1)
            j=j+1;
            ii=ii+1;
            s(k)=j;
            end
        end
    end
    s=s;

Contact us