Show errors during decoding QRcode. Using ZXing Java library - qr-code

I am trying to decode QR code with errors in Java with ZXing library. And I want to get all position of errors in binary string (consist from data and RS error correction codewords), which have decoded into QR code. How I can use ZXing library (or modify it) and solve my problem.

It's a good idea to try reading the source first. In com.google.zxing.common.reedsolomon.ReedSolomonDecoder, there is a method findErrorLocations() which pretty clear does exactly this.

Related

Looking for documentation about custom readable codes

Do any of you know what to call these codes? My best guess is custom QR codes. Facebook (messenger) and Snapchat has their own QR codes and I want to look into how to create these - well my own of course!
Does anyone here have anything I could research? A mane? Some documentation or just something?
Have a wonderful day!
Those QR codes are either using the "Frame QR" format or taking advantage the error correction bits to recover the damage done by placing a logo in the middle of the barcode. QR codes have 4 levels of error correction that can be added to the code to allow a partially damaged barcode to still be readable.
For more information: https://www.qrcode.com/en/codes/

PetitFS Streaming Read

Propably a pretty stupid/simple question:
I'm using the arduino wrapper of Petit FS and I'm trying to do a streaming read of data into a FIFO.
The Library says it supports streaming read and I need to pass buffer=NULL to activate it but I can't figure out which method I need to implement/Rewrite/Overrite to handle my data while reading/streaming
Can anyone help me out?
Never mind, in the avr_mmcp file, is a constant defining a function which is used as streaming function. No idea how I missed it.
In the avr_mmcp file, is a constant defining a function which is used as streaming function.

How to generate QR codes using library in .Net

I am planning to explore on QR code generation . I saw the google api http://chart.apis.google.com/chart?cht=qr&chs=75x75&chl=test and its pretty impressive. But it works only for URL's and small data's. So i am thinking about writing a .net app to generate the QR code. So any information on libraries to start with ,will be helpful.
Thanks,
It does not just work for URLs. You can put whatever text you want as an argument (just URL-encode it correctly). It also works for any data size that QR codes can support.

Parse a large JSON file in ActionScript 3

I need to parse a large trace file (up to 200-300 MB) in a Flex application. I started using JSON instead of XML hoping to avoid these problems, but it did not help much. When the file is bigger than 50MB, JSON decoder can't handle it (I am using the as3corelib).
I have doing some research and I found some options:
Try to split the file: I would really like to avoid this; I don't want to change the current format of the trace files and, in addition, it would be very uncomfortable to handle.
Use a database: I was thinking of writing the trace into a SQLite database and then reading from there, but that would force me to modify the program that creates the trace file.
From your experience, what do you think of these options? Are there better options?
The program that writes the trace file is in C++.
Using AMF will give you much smaller data sizes for transfer because it is a binary, not text format. That is the best option. But, you'll need some middleware to translate the C++ program's output into AMF data.
Check out James Ward's census application for more information about benchmarks when sharing data:
http://www.jamesward.com/census/
http://www.jamesward.com/2009/06/17/blazing-fast-data-transfer-in-flex/
Maybe you could parse the file into chunks, without splitting the file itself. That supposes some work on the as3 core lib Json parser, but it should be doable, I think.
I found this library which is a lot faster than the official one: https://github.com/mherkender/actionjson
I am using it now and works perfectly. It also has asynchronous decoder and encoder

How to Decode ASN.1 format to CSV format using Unix Programing

I have ASN format files i have to convert into CSV format also readable one
I need a Decoder with some advanced options like schedule,Auto FTP like that
Pretty old thread but it still comes at top on Google search and it will be good for people to get an answer. Not exactly Unix programming but you can find a "generic" Javascript based ASN decoder at http://lapo.it/asn1js/.
You can also download this and run natively on your box.
Erlang provides very good support for reading and writing BER-, DER- and PER-encoded ASN.1 packets. The Erlang compiler even accepts ASN.1 syntax natively and produces a custom codec as an Erlang module.
It's a whole new programming language for most people though, so whether it's worth learning it just for this exercise, I'll leave up to you. It is a very fun language to learn, however, and will teach you a very different way to think about programming.
You could have a look at asn1 compiler.
It converts asn.1 syntax files to C code.
As Marcelo noted in you question, you didn't exactly say precisely what you need, so can't tell if it covers all your bases, but you will be able to compile the code to binary (from C code, obviously)
There is an open source package called asn1c which will do ASN.1 encoding and decoding. Its a C library that you need to build and then write code around to implement your program. In order to build the library, it requires the ASN.1 syntax file that is used to construct the encoded messages. When decoding, one option is to output the data to an XML file which you would then need to convert to a CSV file somehow. At a minimum, it supports BER, XER, and PER.
In Python, there is also the PyASN1 library and tools: http://pyasn1.sourceforge.net/

Resources