开发者

QR DETECTION WITH OPENCV AND VISUAL STUDIO

开发者 https://www.devze.com 2023-03-21 15:22 出处:网络
I need to develop an application which detects QR codes through a webcam. I have been working with OpenCV and Visual Studio 2010, detecting squares in general. Then I found a library called \"libdecod

I need to develop an application which detects QR codes through a webcam. I have been working with OpenCV and Visual Studio 2010, detecting squares in general. Then I found a library called "libdecodeqr" which you can use with OpenCV. With this library there is an example (the name is "webcam") to detect and decode QR codes using a webcam and it works succesfully, but if there are various Q开发者_StackOverflowR codes on the screen or paper, the application only recognizes a QR code,not the rest. I would like to know where I can find the algorithm to detect QR codes (something similar to the "square.cpp" in OpenCV) or the steps to develop it.

Thanks in advance.


Try the ZBar library, it's also very easy to use and here you can find how to use it with OpenCV. It works fine for me but you should be aware of the typo in the example:

It's (char*)img->data.ptr, not (char)img->data.ptr.

0

精彩评论

暂无评论...
验证码 换一张
取 消