ConvertTo1Bpp

Discussions about image processing and document imaging.
Post Reply
dixus
Posts: 39
Joined: Wed Feb 10, 2010 9:23 am

ConvertTo1Bpp

Post by dixus » Wed Oct 13, 2010 10:56 am

Hi,

i am scanning in grayscale because barcode recognition doesnt work well in 1 bit mode.

After i have scanned a multipage tiff i want it to convert to 1 bit.

Can I use the method ConvertTo1Bpp? If yes how? I always lose all pages after the first page of the tiff.

Tyvm
dix

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ConvertTo1Bpp

Post by Loïc » Wed Oct 13, 2010 11:19 am

Hi dix,

yes you can:

- Open the multipage tiff in read&write mode
- Select each page and apply negative effect
- Save the multipage tiff to file

Let me know if you need code snippet.

Kind regards,

Loïc

dixus
Posts: 39
Joined: Wed Feb 10, 2010 9:23 am

Re: ConvertTo1Bpp

Post by dixus » Wed Oct 13, 2010 11:20 am

thanks loic. that was the next what i wanted to try.

dixus
Posts: 39
Joined: Wed Feb 10, 2010 9:23 am

Re: ConvertTo1Bpp

Post by dixus » Wed Oct 13, 2010 12:01 pm

that worked. perfect. ty.

another question. its a bit offtopic but i wrote that i have issues with barcode recognition.

I need 8 bits and 300 dpi. Do you have other expierences? That means should it work with 150 DPI or is it not possible to define borders here?

ty
dix

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ConvertTo1Bpp

Post by Loïc » Wed Oct 13, 2010 12:12 pm

Hi dix,

unfortunately there is no optimal configuration for all cases. it depend on the way your pages are acquired, they content and structure.

if you want a feedback on non-recognized barcode you can attach the image including it.

Loïc

dixus
Posts: 39
Joined: Wed Feb 10, 2010 9:23 am

Re: ConvertTo1Bpp

Post by dixus » Wed Oct 13, 2010 12:18 pm

yep i thought so.. i think that our scanner is the problem.... its just bad quality at 150 DPI.
Is there anybody that successfully detected barcodes at 150 DPI?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ConvertTo1Bpp

Post by Loïc » Fri Oct 15, 2010 1:38 pm

Yes,

anyway 200-300 DPI should result in higher accuracy. Maybe scaling the image before doing the process can help.

IE:

Code: Select all

Imaging1.Scale(ImageID, 200 / 150 * 100, Drawing2D.InterpolationMode.HighQualityBicubic)
Hope this helps !

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest