4

Is there any way to write a QR-code decoder in C++ from scratch? I have done that already in Python using SimpleCv module to access the webcam.

Thanks

2
  • Because I don't know if it's possible to have simple computer vision in C++ Commented May 5, 2012 at 17:11
  • Before you can decode a QR code, you must first take a picture of one. It's not clear which of these two things your question is about. The QR decode is platform-independent, but interfacing with a camera is 100% platform-dependent, and you don't mention your platform. Commented May 5, 2012 at 17:40

3 Answers 3

8

I'm one of the core SimpleCV developers. We used to support ZXing, but the problem was it was java based and quite slow running outside of it's own application. As of last week I updated the code to support Zbar. It's c++ based, and is very fast and much easier to install and run. They also have examples on how to run your own code and should work with OpenCV if you need much faster speeds.

Hope this helps.

Sign up to request clarification or add additional context in comments.

3 Comments

Hey Xamox, Everytyhing fine? with the GSoC Student? I gonna take a look at those example thanks you
Yeah, the GSoC students are doing some cool things. A mobile app for android should be out soon. If you do want to use zbar, on ubuntu 12.04 you can install it with just 'sudo apt-get install python-zbar'
I have had problems getting ZBar running on macOS
5

ZXing has a C++ detector and decoder. All you need to give it is the RGB or luminance image data as a vector.

(Full disclosure: I'm the primary maintainer of the ZXing C++ QR port at this point.)

9 Comments

Everybody is talking about ZXing, but There is no proper documentation about how to use it maybe you can send me a link for that or so?
Yeah, there's not a lot of documentation. I think most people read the sample apps and the source. They're fairly easy to read. Not ideal, but certainly easier than trying to develop a solution from scratch.
@smparkes I wanted to use QR Code Library for Windows Store App in C++.I want to generate QR Code based on Three Info WiFI SSID,WIFI Security and Password. Plz guide me how to it.I am not able to configure Zxing in my project
here is an example of using zxing in c++ code wiki.ssrrsummerschool.org/…
The version in the zxing repo has been retired. It was an initially-automated translation of the java that was then manually curated. It was removed when the maintainer (me, at the time) moved on. Reading the description of the second repo, it's based on the last C++ commit in the main repo that someone found useful ...
|
0

I'm using ZXing for Java, but on their website it says they have partial support for C++ http://code.google.com/p/zxing/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.