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 »

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: 2300
Joined: Thu Jul 10, 2008 2:21 pm

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

Post by Alex »

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 »

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 »

oh this editors doesnt accept spaces, so the pictures of the images are a bit deformed.
Alex
Site Admin
Posts: 2300
Joined: Thu Jul 10, 2008 2:21 pm

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

Post by Alex »

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 »

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