libdecodeqr-webcam grab fail

Bug #667167 reported by Homin Lee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libdecodeqr (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: libdecodeqr-examples

1) Ubuntu 10.04.1 LTS
2) libdecodeqr-examples 0.9.3-2ubuntu1
3) when I hit a space for grab qrcode image from my webcam, the libdecodeqr-webcam is terminated.
return code from cvWaitKey() is not char 0x20 but 0x100020.
4) following patch is needed.

--- a/src/sample/webcam/webcam.cpp 2007-02-26 04:42:28.000000000 +0900
+++ a/src/sample/webcam/webcam.cpp 2010-10-27 15:34:28.959167170 +0900
@@ -79,7 +79,7 @@
         //
         // when [SPACE] key pressed, do decode.
         //
- if(key==0x20&&!qr_decoder_is_busy(decoder)){
+ if((key&0xff)==0x20&&!qr_decoder_is_busy(decoder)){
             key=-1;

             //

Revision history for this message
Fremont Früst (montfrefu) wrote :

Hello,

I had the same problem in Ubuntu 10.04 LTS, but I can't find the file where I should put the patch.

Could you explain this point a little more please.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.