I'm developing an app on Xamarin where I need to render some strings to 2D barcodes. I'm using ZXing.Net.Mobile to do the render.
I can render properly QR codes but the issue I'm having is with the Data Matrix format.
I attach two images, when I tried to encode the value "1234" I expect the first result but instead I'm getting the second one.
Any idea of why this is happening?
Thanks.
Related
unfortunately, I cannot tag this post with the correct "technology" because it does not exist and i dont have 1500 reputation to create it.
We are using a cloud service called "Liquid Pixels" to render some stuff on our images.
Lets say we have an image chain that is currently rendering a ribbon on the given JPEG image. This chain is working fine.
Then I adapted the chain to work with animated gif images, therefore I changed the sink format to gif (sink=format[gif]). That was working fine as well.
Now I want to combine the two cases in one chain, because the only difference is the sink command. The plan is to check the MIME type of the source image and then either render a gif or a jpg image.
I rendered the image as xml to view the metadata map.
I thought i can do it like this.
source=url[https://something.com/1x1_sample.gif],name[testImage]
sink=format[gif],if[('testImage.format' eq 'GIF')]
sink=format[jpg],if[('testImage.format' ne 'GIF’)]
But for some reason I cannot access the format attribute. I am used to grab some parameters like “testImage.width” or “testImage.height”, but for some reason i cannot access the format=“GIF” property. I guess that has happens because the width and height are on a different hierarchy level in the metadata map.
I hope you guys can help me.
The image does not actually have a "format" during the render. Only a file has a format. During processing the image is simply on memory as either raster or vector data; it is only when you sink that it becomes a file in whatever format. Also, LiquiFire OS uses the image data to determine the original format when acquiring an image from a source, never the image name itself.
If you need operations in your LiquiFire Image Chain to react to the source image URL, you can test the last part of the image name by applying a regular expression to see if it is either .GIF or .gif. An example of how that can be done:
set=imageURL[https://your.server.com/sample.gif]
source=url[global.imageURL],name[testImage]
regexcase=name[isGif],key[global.imageURL],cases[\.gif$|\.GIF$|\.\w+$],values[yes|yes|no]
sink=format[gif],if[('global.isGif' eq 'yes')]
sink=format[jpg],if[('global.isGif' eq 'no’)]
I'm currently trying to achieve this:
I have a very large TIFF image, which contains scanned documents. The image contains invoices with barcodes/QR codes, followed by multiple other scanned documents related to the invoice which preceded them. This can be repeated multiple times ( the TIFF image may look like [invoice] + [documents] + [invoice] + [documents] ... )
I need a program (doesn't really matter in which language but I'd prefer either Java, JavaScript, PHP, C++ or Python) that takes said TIFF image, scans all the barcodes and returns their values and their position in the image (either which page it is on or it's absolute position, but the page is preferable, I know for certain that there won't be multiple barcodes on one page). The goal is to split this TIFF image into multiple PDF files, each containing only one invoice and all of the documents that belong to the invoice.
I have the latter part done already. I intend to use ImageMagick to split the TIFF file into multiple files (tested, works). I have also tried multiple barcode scanning methods, but met critical problems at every one. And that's the point of my question:
Is any of my presumptions false? Is there a better way/library/SW that you know about that could work?
Libraries/SW I tried so far:
ZXing port for PHP: Can't work with TIFF files
ZXing github
Quagga for JavaScript: Can't work with TIFF files either.
Quagga github
ZBar code reader: The best looking one by far. I managed to scan multiple QR codes in one TIFF image using CMD (Windows), but didn't find a way to get their positions. Also found out that C++ and Python versions exist, but didn't get to try them out just yet.
Thanks for any ideas/corrections.
The best one I heard -that is subjective ofc- is Barcode Rendering Framework
I'm not sure if it can detect multiple barcodes on a page but it can detect many different types of barcodes.
And it's also Open Source..
im using OL3 to display vector maps. Currently im using geojson format. Data are extracted from OpeenStreetMap. The thing is, this format doesnt contain informations about styling, so i have to do it manually and it looks rly baaad.
My friend is developing Android app, and he is using Mapsforge with .map format. Map looks great without styling.
Is there any option in OL3 to just load vector data and have it already styled (some other format maybe)?
Or are there any dowloadable js code to style geojson?
QR codes are great for printing machine readable URLs if you have a square space. But they look horrible if placed in a text as they are much taller than a line of text.
Is there a way I can have a 1d-barcode with the same functionality as QR code (URL being the most important feature) so it can be put as text in a normal paragraph without special formatting?
If yes: How do I generate those barcodes?
There're different barcode symbologies that can encode text. The main problem is how much text you want to encode and which apps are you going to use to decode the barcode.
If you're using an URL shortener and you want to stick to a 1D barcode, CODE128 is probably the best choice.
Another option could be a PDF417, it's a 2D barcode but is not square like QRCode. In this case you can encode more chars in less space and this symbology is supported by iOS and the major Barcodes library.
As per an example URL shortened here:
http://goo.gl/info/kW1c#week
What is the displayed 2D barcode for (copied here):
It's actually a 2D barcode, and it is a QR code. It is meant to print on stickers and what not to read with your cell phone camera.
http://en.wikipedia.org/wiki/QR_Code
Takes you to the webpage of the shortened URL (usually for mobile devices that can read a QR code).
bonus:
to get a QR code for a goo.gl URL - append .qr :
http://goo.gl/kW1c.qr
Quick answer: printing these barcodes on a webpage is a common way to let people visit/bookmark that page from their phone (using the phone's camera and barcode reader function).
It is important to understand a barcode is a piece of text data, and not an instruction. For example, the above bar code contains the text "http://goo.gl/info/kW1c".
It is the application reading the barcode which interprets it as an instruction. The data is read by a barcode reading application (for example, on a smart phone), and then an appropriate action is typically launched depending on the type of data. For example, if the text starts with "http://" a browser may be launched with that URL. If the data starts with "phone:" the phone application may be launch with that number.