How to speed up the process how to use appropriate thread
Time:11-25
My function is to realize the scan qr code and identify Pseudo code
while (b_scanning) { Cap & gt;> Frame; CvtColor (frame, imageGray CV_RGB2GRAY);//this is conversion Ret=QRCode: : GetQR (imageGray);//this is recognition of qr code if (! Ret. Empty ()) { B_scanning=FALSE; } Imshow (" view ", frame);//this is WaitKey (30); }
Which identify the qr code function particularly time-consuming, this operation can I make imshow BuKa Is a function of the recognition of qr code on the thread, how to create a thread Please describe the thread running the line
.
CodePudding user response:
A little bit more simple of the advance imshow to identify before Before I tried zxing , the speed is very fast, can have a try, the new version of the don't provide the CPP, can use previous versions to see