Menu

Invalid_Exception

Help
ramesh
2005-12-13
2013-03-22
  • ramesh

    ramesh - 2005-12-13

    hi ,
    first thanks for the code.
    I have an image of a UPC symbol and am trying to process it. It is in the form of a jpeg file 785 X 446 pixels. I try the following and i get a Invalid_Exception:

    Rectangle rect = new Rectangle(5, 5,  
      image.getWidth(null)-5, mage.getHeight(null)-5);
    Barcode barcode =   
       JBarcode_Recognition.GetBarcode(buffImage,
       rect, 0.0,               
       JBarcode_Recognition.VERTICAL,
       JBarcode_Recognition.NO_COLOUR_INVERT,
       JBarcode_Recognition.NO_DIRECTION_REVERSE,   
       Barcode.BT_UPC_A);

    Any help or pointers appreciated,
    Thanks
    ramshri

     
    • Andi McLean

      Andi McLean - 2005-12-13

      It appears that profram is unable to decode the image, can you send the image, so I can investigate.

      Thanks
      Andi

       

Log in to post a comment.

MongoDB Logo MongoDB