How to scan an image automatically on the reverse rectangle

Questions, comments and suggestions concerning VintaSoft Barcode .NET SDK.

Moderator: Alex

Post Reply
BioT09
Posts: 11
Joined: Mon Nov 16, 2009 1:48 pm

How to scan an image automatically on the reverse rectangle

Post by BioT09 » Tue Dec 01, 2009 4:57 pm

Hello,

my question is how may i scan the reverse barcode-rectangle, without turning the image?
The problem is before scanning I dont know if the image is backwards or not.

Alex
Site Admin
Posts: 1464
Joined: Thu Jul 10, 2008 2:21 pm

Re: How to scan an image automatically on the reverse rectangle

Post by Alex » Wed Dec 02, 2009 9:36 am

Hello,

You can set the BarcodeReader.Setting.ScanDirection property to all directions and image will be analyzed in all directions.

Best regards, Alexander

BioT09
Posts: 11
Joined: Mon Nov 16, 2009 1:48 pm

Re: How to scan an image automatically on the reverse rectangle

Post by BioT09 » Wed Dec 02, 2009 3:14 pm

Thats not what I mean. I mean if I scan the rectangle "code" in the image, I cant scan the code with the same coordinates, if the images is backwards. Are there any settings to change the coordinates automatically to the backward coordinates if the barcodereader didnt find a barcode?
------------------
| code |
| |
| | = Image
| |
| |
|____________|

------------------
| |
| |
| | = backwards Image
| |
| code |
|____________|

BioT09
Posts: 11
Joined: Mon Nov 16, 2009 1:48 pm

Re: How to scan an image automatically on the reverse rectangle

Post by BioT09 » Wed Dec 02, 2009 3:17 pm

oh this editors doesnt accept spaces, so the pictures of the images are a bit deformed.

Alex
Site Admin
Posts: 1464
Joined: Thu Jul 10, 2008 2:21 pm

Re: How to scan an image automatically on the reverse rectangle

Post by Alex » Thu Dec 03, 2009 10:20 am

Hello,

I have understood your problem.

Here are necessary steps if you have document with barcode in the top-left corner but do not know direction of the document:
  • Set region of interest to the left-top corner, set scan direction to left-to-right direction, scan barcode
  • Stop barcode searching process if barcode is found, otherwise go to next step
  • Set region of interest to the right-bottom corner, set scan direction to right-to-left direction, scan barcode
Best regards, Alexander

BioT09
Posts: 11
Joined: Mon Nov 16, 2009 1:48 pm

Re: How to scan an image automatically on the reverse rectangle

Post by BioT09 » Thu Dec 03, 2009 11:00 am

Ok thanks, I know I can do it with this steps by my self, but I hoped there is a setting which execute this steps automatically.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests