Menu

Pass raw data instead of an image?

Help
2009-03-16
2024-07-18
  • Nobody/Anonymous

    I am dealing with PMB files that are being converted into an array of yes' and no's (the images are all black and white).  Can I sent Zebra the array or format the array specifically for Zebra for it to read code 128, or do I need to convert it to a jpeg or other image format?

    Thanks.

     
    • spadix

      spadix - 2009-03-16

      > Can I sent Zebra the array or format the array specifically for Zebra
      >
      yes!  actually this library *only* supports raw image data input - there are many other libraries for reading various image file formats, we are not interested in duplicating those efforts.

      the raw data for scanning may be provided in a handful of supported formats.  the data formats are identified by a "four character code", which is a somewhat portable 32-bit integer encoding four ascii characters (always little-endian).  the "best" format for passing image data to the library for scanning is "Y800" (http://fourcc.org/yuv.php#Y800), which is just a single plane (width * height bytes) of 8bpp grayscale data.  other supported formats are just converted to "Y800" before scanning by the few crude filters we do have.

      we do not currently support a 1-bit black and white format... you will need to convert your image to grayscale before scanning.  this is a straightforward operation - just expand each bit to a byte of all 0s or all 1s - but i can also provide a code example if you specify the language you are working in and how your data is currently formatted.

      in order to pass the data to the library for scanning, you also need to "wrap" it in a zebra image object that also carries the size and format information needed to interpret the data.  the code details vary by language, but basically you create an image object, set the format fourcc ("Y800"), size, and data attributes, then pass the image object it to a processor or image_scanner object.

      please let us know if you would like more detailed feedback,
      -spadix

       
    • Nobody/Anonymous

      Awesome, thanks for your speedy reply.  I'm going to look into this more, but it sounds pretty straight forward.

      Thanks.

       
  • Error

    Error - 2024-06-29

    Local guides employed by abroad tour services bring valuable insights and expertise to the travel experience. Their knowledge of the area, history, and walking tours amsterdam culture enhances the tour, providing a deeper understanding of the destination and its significance.

     
  • Error

    Error - 2024-07-01

    Using a vapor barrier is important for certain installations. Moisture from the subfloor can floor supply near me damage new flooring materials. A vapor barrier protects against moisture intrusion.

     
  • Error

    Error - 2024-07-10

    Watches are functional and stylish accessories that also serve as timepieces. They come in various designs, including analog and digital styles. Watches can cutelycovered.com be sleek and minimalist or embellished with gemstones.

     
  • Error

    Error - 2024-07-18

    Serums deliver concentrated active ingredients to target specific skin concerns. Vitamin C serums brighten and protect, while hyaluronic acid serums provide intense hydration. Including pranabeauty.com serums in your routine allows for customized treatment of issues like dark spots, fine lines, and dehydration.

     
  • Error

    Error - 2024-07-18

    Support for elderly dogs is an advantage. Paw shoes can provide extra cushioning and stability for senior dogs with arthritis or mobility issues. This pawsbykai.com added support helps them move more comfortably and confidently, improving their quality of life.

     

Log in to post a comment.